summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@gmail.com>2019-09-07 22:01:41 -0700
committerRalf Gommers <ralf.gommers@gmail.com>2019-09-08 01:04:36 -0700
commitd630d96598f1b7ea044d60bea8cd2b87778f072a (patch)
treeb394a036b356fa6ace12ce40c0bd6dbe94417676 /tools
parentc280ab6279c1e7c4298bfe559887799825ef87dc (diff)
downloadnumpy-d630d96598f1b7ea044d60bea8cd2b87778f072a.tar.gz
BLD: remove generated Cython files from sdist
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 Also adds pyproject.toml to MANIFEST.in, it was missing.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/cythonize.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/cythonize.py b/tools/cythonize.py
index 8b2f5b519..ee68b82c2 100755
--- a/tools/cythonize.py
+++ b/tools/cythonize.py
@@ -74,6 +74,7 @@ def process_pyx(fromfile, tofile):
# Cython 0.29.13 is required for Python 3.8 and there are
# other fixes in the 0.29 series that are needed even for earlier
# Python versions.
+ # Note: keep in sync with that in pyproject.toml
required_version = LooseVersion('0.29.13')
if LooseVersion(cython_version) < required_version: