Skip to content
Snippets Groups Projects
Commit 6394d8c8 authored by Thomas Kluyver's avatar Thomas Kluyver Committed by Thomas Kluyver
Browse files

Fix writing --index-url in requirements.txt file

parent e72ac9e0
No related branches found
No related tags found
1 merge request!696Install internal dependencies from Gitlab package index
......@@ -715,8 +715,8 @@ def run(argv=None):
# Record installed Python packages for reproducing the environment
if not args['skip_env_freeze']:
with (cal_work_dir / 'requirements.txt').open('wb') as f:
print('--index-url https://devpi.exfldadev01.desy.de/euxfel/internal',
file=f, flush=True)
f.write(b'--index-url https://devpi.exfldadev01.desy.de/euxfel/internal\n')
f.flush()
check_call([python_exe, '-m', 'pip', 'freeze'], stdout=f)
folder = get_par_attr(parms, 'in_folder', 'value', '')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment