Fix manifest to not exclude cythonized files if we are building pure python.

This commit is contained in:
Jennifer Taylor
2021-08-12 16:31:59 +00:00
parent c457216294
commit ee3b18bfcb
4 changed files with 18 additions and 4 deletions
+9
View File
@@ -10,6 +10,9 @@ def extensions():
# extensions. Note that the pure python code will run slower.
if 'PURE_PYTHON' in os.environ:
# We've been asked not to compile extensions.
with open("MANIFEST.in", "w") as wfp:
with open("MANIFEST.assets", "r") as rfp:
wfp.write(rfp.read())
return []
from setuptools import Extension
@@ -42,6 +45,12 @@ def extensions():
),
]
with open("MANIFEST.in", "w") as wfp:
with open("MANIFEST.assets", "r") as rfp:
wfp.write(rfp.read())
with open("MANIFEST.cython", "r") as rfp:
wfp.write(rfp.read())
if 'EXPERIMENTAL_MYPYC_COMPILER' in os.environ:
from mypyc.build import mypycify