#1 Generate the Cython -> C source just once
Merged 3 years ago by jdekloe. Opened 3 years ago by churchyard.
rpms/ churchyard/pyproj cython  into  master

file modified
+3 -9
@@ -114,6 +114,9 @@ 

  rm -f _proj.c

  rm -rf lib/%{name}/data

  

+ # Generate Cython C code

+ cython _proj.pyx

+ 

  # copy sources to py3dir to not interfere with py2 build

  # and if needed modify #! lines of *.py files

  %if 0%{?with_python3}
@@ -122,15 +125,6 @@ 

  find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'

  %endif # if with_python3

  

- # Generate Cython C code

- cython _proj.pyx

- 

- %if 0%{?with_python3}

- pushd %{py3dir}

- cython3 _proj.pyx

- popd

- %endif # if with_python3

- 

  %build

  export PROJ_DIR="%{_usr}/"

  CFLAGS="%{optflags}" %{__python2} setup.py build

  • there is no more cython3 command
  • Cython behaves the same on both Pythons

thanks for your effort!

Pull-Request has been merged by jdekloe

3 years ago