Fix shebang

This commit is contained in:
Guilhem Lavaux 2020-09-20 15:32:53 +03:00
parent f09b35c490
commit 83778c3b1f

View File

@ -156,7 +156,7 @@ class BuildCMakeExt(build_ext):
cython_code = os.path.join(str(build_dir.absolute()),'mycython')
with open(cython_code, mode="wt") as ff:
ff.write("#!/usr/bin/env sh -c '${PYTHON}'\n"
ff.write("#!/usr/bin/env -S sh -c '${PYTHON}'\n"
"from Cython.Compiler.Main import setuptools_main\n"
"setuptools_main()")
os.chmod(cython_code, stat.S_IXUSR|stat.S_IWUSR|stat.S_IRUSR|stat.S_IRGRP)