Always specify interpreter.
This commit is contained in:
parent
219a2dae0a
commit
33aa977763
1 changed files with 3 additions and 5 deletions
|
@ -361,11 +361,9 @@ class SetupPy(BuildSystem):
|
||||||
# setuptools might fetch eggs instead of our preferred resolver.
|
# setuptools might fetch eggs instead of our preferred resolver.
|
||||||
install_missing_reqs(session, resolver, list(self._setup_requires()))
|
install_missing_reqs(session, resolver, list(self._setup_requires()))
|
||||||
interpreter = shebang_binary(os.path.join(self.path, 'setup.py'))
|
interpreter = shebang_binary(os.path.join(self.path, 'setup.py'))
|
||||||
if interpreter is not None:
|
if interpreter is None:
|
||||||
argv = ["./setup.py"] + args
|
interpreter = self.DEFAULT_PYTHON
|
||||||
else:
|
argv = [interpreter, "./setup.py"] + args
|
||||||
# Just assume it's Python 3
|
|
||||||
argv = [self.DEFAULT_PYTHON, "./setup.py"] + args
|
|
||||||
env = {}
|
env = {}
|
||||||
# Inherit SETUPTOOLS_SCM_PRETEND_VERSION from the current environment
|
# Inherit SETUPTOOLS_SCM_PRETEND_VERSION from the current environment
|
||||||
if 'SETUPTOOLS_SCM_PRETEND_VERSION' in os.environ:
|
if 'SETUPTOOLS_SCM_PRETEND_VERSION' in os.environ:
|
||||||
|
|
Loading…
Add table
Reference in a new issue