This was fixed a few versions back. But then python-setuptools changed. The problem is that python scripts installed via setuptools & pip would have `#!/build_dir_path/staging_dir/target-x86_64_musl-1.1.15/host/bin/python` as the path in the script, rather than the path on the target (`/usr/bin/python`). This fixes that. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
13 lines
546 B
Diff
13 lines
546 B
Diff
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
|
|
index e8b90c7..8598c44 100755
|
|
--- a/setuptools/command/easy_install.py
|
|
+++ b/setuptools/command/easy_install.py
|
|
@@ -1946,6 +1946,8 @@ class CommandSpec(list):
|
|
Construct a CommandSpec from a parameter to build_scripts, which may
|
|
be None.
|
|
"""
|
|
+ if os.environ.get('__PYVENV_LAUNCHER__'):
|
|
+ return cls.from_environment()
|
|
if isinstance(param, cls):
|
|
return param
|
|
if isinstance(param, list):
|