10000 BLD: remove generated Cython files from sdist by rgommers · Pull Request #14453 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BLD: remove generated Cython files from sdist #14453

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

Merged
merged 1 commit into from
Sep 8, 2019

Conversation

rgommers
Copy link
Member
@rgommers rgommers commented Sep 8, 2019

Rationale: it has happened multiple times in the recent past that users
needed to use a more recent Cython than was used to generate the sdist
of the most recent release available on PyPI (e.g. for building with
a not-yet-released version of Python for which a Cython fix just
landed). The dependency specification and packaging tools have matured
to the point where it should be fine to require Cython to be installed.
Also, we have wheels (and conda-forge packages) for Windows, Linux and
macOS, so this change won't be visible at all to the average user.

Closes gh-13790, closes gh-14403

Also adds pyproject.toml to MANIFEST.in, it was missing.

Another note: this is not in setup_requires on purpose. For one because generate_cython runs before setup(**metadata) is invoked. For another, because if anyone runs python setup.py install they can simply deal with any error if they get it. And using setup_requires would invoke easy_install in some cases, which isn't nice anyway.

Rationale: it has happened multiple times in the recent past that users
needed to use a more recent Cython than was used to generate the sdist
of the most recent release available on PyPI (e.g. for building with
a not-yet-released version of Python for which a Cython fix just
landed).  The dependency specification and packaging tools have matured
to the point where it should be fine to require Cython to be installed.
Also, we have wheels (and conda-forge packages) for Windows, Linux and
macOS, so this change won't be visible at all to the average user.

Closes numpygh-13790

Also adds pyproject.toml to MANIFEST.in, it was missing.
@charris
Copy link
Member
charris commented Sep 8, 2019

LGTM. Note that SciPy parses the required version of cython out of the pyproject file, we could do the same, but let's add that later.

Thanks Ralf.

@rgommers rgommers deleted the no-cython-in-sdist branch September 8, 2019 19:23
@rgommers
Copy link
Member Author
rgommers commented Sep 8, 2019

Note that SciPy parses the required version of cython out of the pyproject file, we could do the same, but let's add that later.

I figured that for a one-liner it's much more trouble than it's worth, easier to simply add a comment to keep two places in sync.

SciPy actually needs *_requires in setup.py, so it's different there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error trying to install in CPython 3.8.0b4 cant install on python 3.8b1 on windows
2 participants
0