Commit 9decca37 by Eric Coissac

patch a small bug in the installer

parent da7c0a0e
......@@ -37332,7 +37332,7 @@ def cleanModules():
def pip_download_package(package):
tmpdir = getTmpDir()
args = ['pip install']
args = ['python3 -m pip install']
if 'http_proxy' in os.environ and 'https_proxy' not in os.environ:
os.environ['https_proxy']=os.environ['http_proxy']
......@@ -37346,16 +37346,11 @@ def pip_download_package(package):
args.append('--pre')
args.append('--no-cache-dir')
args.append(package)
#print(args)
os.system(" ".join(args))
#pip.main(args)
#print("####>>>>>> DONE")
if os.system(" ".join(args)) != 0:
args.pop(-2)
os.system(" ".join(args))
filename = glob.glob(os.path.join(tmpdir,"%s*" % package))[0]
tar = tarfile.open(filename)
......@@ -37427,7 +37422,7 @@ def main():
os.chmod(activate, st.st_mode | stat.S_IEXEC)
envactivate = open(os.path.join(virtualenvname,'bin','activate')).readlines()
print(envactivate)
line=0
try:
while True:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment