Skip to content
This repository has been archived by the owner on Oct 9, 2022. It is now read-only.

Commit

Permalink
pip_compile: use stdin instead of a filename
Browse files Browse the repository at this point in the history
  • Loading branch information
BoleynSu committed Apr 16, 2022
1 parent 4c7e63f commit 155a662
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/pip_install/pip_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@
sys.argv.append("--generate-hashes")
sys.argv.append("--output-file")
sys.argv.append(requirements_txt if UPDATE else requirements_out)
sys.argv.append(requirements_in)
sys.stdout = open(requirements_in, 'r')
sys.argv.append('-')

if UPDATE:
print("Updating " + requirements_txt)
Expand Down

0 comments on commit 155a662

Please sign in to comment.