mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-22 09:57:15 +01:00
Explicitly execute python binary (sys.executable) in distcheck
Signed-off-by: Caitlin Potter <snowball@defpixel.com> Signed-off-by: Thomas Nagy <tnagy1024@gmail.com>
This commit is contained in:
parent
336c3f2e3f
commit
1c562a034a
@ -518,7 +518,7 @@ class DistCheck(Dist):
|
||||
cfg = [x for x in sys.argv if x.startswith('-')]
|
||||
|
||||
instdir = tempfile.mkdtemp('.inst', self.get_base_name())
|
||||
ret = Utils.subprocess.Popen([sys.argv[0], 'configure', 'install', 'uninstall', '--destdir=' + instdir] + cfg, cwd=self.get_base_name()).wait()
|
||||
ret = Utils.subprocess.Popen([sys.executable, sys.argv[0], 'configure', 'install', 'uninstall', '--destdir=' + instdir] + cfg, cwd=self.get_base_name()).wait()
|
||||
if ret:
|
||||
raise Errors.WafError('distcheck failed with code %i' % ret)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user