This commit is contained in:
Guilhem Lavaux 2020-09-20 16:56:25 +03:00
parent 3920970326
commit 7fce73ef6c

View File

@ -157,7 +157,7 @@ class BuildCMakeExt(build_ext):
cython_code = os.path.join(str(build_dir.absolute()),'mycython') cython_code = os.path.join(str(build_dir.absolute()),'mycython')
with open(cython_code, mode="wt") as ff: with open(cython_code, mode="wt") as ff:
ff.write("#!/bin/sh\n" ff.write("#!/bin/sh\n"
"${PYTHON} -c 'from Cython.Compiler.Main import setuptools_main; setuptools_main()' #@") "${PYTHON} -c 'from Cython.Compiler.Main import setuptools_main; setuptools_main()' $@")
os.chmod(cython_code, stat.S_IXUSR|stat.S_IWUSR|stat.S_IRUSR|stat.S_IRGRP) os.chmod(cython_code, stat.S_IXUSR|stat.S_IWUSR|stat.S_IRUSR|stat.S_IRGRP)
# Now that the necessary directories are created, build # Now that the necessary directories are created, build