From 6986bd3d5808f41e56833b50e835781b5402df1c Mon Sep 17 00:00:00 2001 From: Andy Kluger Date: Wed, 24 Mar 2021 22:48:18 -0400 Subject: [PATCH] Restore ability to set compile cache with env var PIP_TOOLS_CACHE_DIR Fixes bug introduced in GH-1238 and exposed by GH-1357 --- piptools/scripts/compile.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/piptools/scripts/compile.py b/piptools/scripts/compile.py index 8534a0b1f..6c036d5ae 100755 --- a/piptools/scripts/compile.py +++ b/piptools/scripts/compile.py @@ -185,7 +185,9 @@ def _get_default_option(option_name: str) -> Any: "--cache-dir", help="Store the cache data in DIRECTORY.", default=CACHE_DIR, + envvar="PIP_TOOLS_CACHE_DIR", show_default=True, + show_envvar=True, type=click.Path(file_okay=False, writable=True), ) @click.option(