matplotlib / basemap

Plot on map projections (with coastlines and political boundaries) using matplotlib
MIT License
780 stars 392 forks source link

please provide way to regenerate cython files #436

Closed juliantaylor closed 2 years ago

juliantaylor commented 6 years ago

The release tarballs contain generated cython files. But sometimes you want to regenerate them with newer versions of cython e.g. to support newer python versions.

Please provide a way to correctly generate all files. E.g. via a script (that is aware of cython -2 and cython -3) or directly via setup.py like e.g. python-numpy and python-scipy do it (see their cythonize.py).

molinav commented 2 years ago

@juliantaylor I have been refactoring the whole project and now the _geoslib.c file is not part of the repository anymore, i.e. the Cython extension is compiled at build time when calling python setup.py bdist_wheel.

If you are using GNU/Linux, I recently uploaded precompiled binary wheels to PyPI with the latest beta release (1.3.0b1). Soon we will have a stable release.

molinav commented 2 years ago

@juliantaylor We finally have the stable release 1.3.0 on PyPI in case you want to give it a try.