mirror of
https://github.com/DragonMinded/bemaniutils.git
synced 2026-09-30 10:58:02 +03:00
Fix manifest to not exclude cythonized files if we are building pure python.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user