Use shell script instead
This commit is contained in:
parent
83778c3b1f
commit
3920970326
5
setup.py
5
setup.py
@ -156,9 +156,8 @@ 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("#!/usr/bin/env -S sh -c '${PYTHON}'\n"
|
ff.write("#!/bin/sh\n"
|
||||||
"from Cython.Compiler.Main import setuptools_main\n"
|
"${PYTHON} -c 'from Cython.Compiler.Main import setuptools_main; 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
|
||||||
|
Loading…
Reference in New Issue
Block a user