| |
@@ -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
|
| |