Use another script command
This commit is contained in:
parent
ec308c1759
commit
b509f71464
2
setup.py
2
setup.py
@ -156,7 +156,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(f"#!{sys.executable}\n"
|
ff.write(f"#!/usr/bin/env sh -c '${PYTHON}'\n"
|
||||||
"from Cython.Compiler.Main import setuptools_main\n"
|
"from Cython.Compiler.Main import setuptools_main\n"
|
||||||
"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)
|
||||||
|
Loading…
Reference in New Issue
Block a user