#2 Explicitly use Python 3 during the build
Closed 8 months ago by suve. Opened 8 months ago by churchyard.
rpms/ churchyard/colobot py3  into  master

file modified
+2 -2

@@ -60,7 +60,7 @@ 

  BuildRequires: openal-soft-devel >= 1.13

  BuildRequires: po4a

  BuildRequires: physfs-devel

- BuildRequires: python >= 2.7

+ BuildRequires: python3

  BuildRequires: SDL2-devel SDL2_image-devel SDL2_ttf-devel

  BuildRequires: xmlstarlet

  BuildRequires: %{_bindir}/pod2man

@@ -138,7 +138,7 @@ 


  mkdir build

  cd build

- %cmake -DCMAKE_BUILD_TYPE=Release ..

+ %cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=%{__python3} ..

  make %{?_smp_mflags}



no initial comment

Thanks, I'll check later if the game builds correctly using python3. If this does, then I will probably close this PR and instead write a patch for the CMakeLists to use python3 (and submit that upstream).

There is a scratchbuild here on the right side (simple-koji-ci).

Tested out on my machine, works fine. Changeset applied to master.

Pull-Request has been closed by suve

8 months ago