-
Notifications
You must be signed in to change notification settings - Fork 424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert python install from build_ext to setuptools setup_requires. #723
Conversation
Does the change require cython? The current setup.py makes cython optional. When you install with pip, cython is not required. I prefer that way. |
With this change, if cython is not available at install time it will be installed before building the mappy extension as part of the full install command sequence. It does not require that cython is installed/available before This also forces |
I much prefer people can download the tar-ball and compile without any dependencies. Cython shouldn't be required. I will update the package at PyPI at some point. |
I appreciate the concern. I am wondering how the
|
You create mappy.c with cython. The current setup.py submits this file to PyPI. This way, when users run pip install, they don't need cython as a dependency. #719 is probably caused by the older cython that was used to create mappy.c. |
I see. Thank you for the detailed explanation! |
It seems that I am using TABs but you are using SPACEs. Could you change that? I will merge after that. |
Done. |
Just to confirm: with this PR, pip will automatically install cython. Is that right? |
Yes. When |
Good. Thanks. |
This should make cython installation a bit more robust and allows python3.9 support (on my machine at least).
Resolves #719