Skip to content

Commit

Permalink
Make requirements compile disable pip's require-virtualenv flag always
Browse files Browse the repository at this point in the history
Setting explicitly to 0 is required when it's done through the config file.
  • Loading branch information
adamchainz committed Jun 4, 2022
1 parent f27f1f0 commit 530eee9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion requirements/compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
if __name__ == "__main__":
os.chdir(Path(__file__).parent)
os.environ["CUSTOM_COMPILE_COMMAND"] = "requirements/compile.py"
os.environ.pop("PIP_REQUIRE_VIRTUALENV", None)
os.environ["PIP_REQUIRE_VIRTUALENV"] = "0"
common_args = [
"-m",
"piptools",
Expand Down

0 comments on commit 530eee9

Please sign in to comment.