#2 Recythonize all the C sources
Merged 2 years ago by devrim. Opened 2 years ago by churchyard.
rpms/ churchyard/pyproj recythonize  into  master

file modified
+5 -11
@@ -65,15 +65,8 @@ 

  %prep

  %setup -q

  

- # Delete proj sources, Cython generated file and proj data

- %{__rm} -rf src

- %{__rm} -f nad2bin.c

- %{__rm} -f _proj.c

- %{__rm} -rf lib/%{name}/data

- 

- # Generate Cython C code

- # not needed anymore, this is taken care of by setup.py now

- # cython _proj.pyx

+ # Delete Cython generated files

+ rm -v $(grep -rl '/\* Generated by Cython')

  

  %build

  export PROJ_DIR="%{_usr}/"
@@ -94,6 +87,7 @@ 

  

  %check

  # run old tests based on doctest (see README.md)

+ cd  # make sure original source not in the PATH

  PYTHONPATH="%{buildroot}%{python3_sitearch}" %{__python3} -c 'import pyproj;pyproj.test()' -v

  

  # run new tests based on unittest (see README.md)
@@ -104,8 +98,8 @@ 

  

  %files -n python3-%{name}

  %doc docs README.md

- %{python3_sitearch}/%{name}

- %{python3_sitearch}/%{name}-*-py*.egg-info

+ %{python3_sitearch}/%{name}/

+ %{python3_sitearch}/%{name}-*-py*.egg-info/

  

  # note: the provided create_docs.sh script would suggest that

  # epydoc is needed to build the docs in subdir docs. However

  • make sure to test using the installed module
  • assert installed directories are directories

Pull-Request has been merged by devrim

2 years ago