From 2dd787a3d097e942e7be38aa9d4525fd7b2c1b21 Mon Sep 17 00:00:00 2001 From: Andy Kluger Date: Thu, 25 Mar 2021 04:47:56 -0400 Subject: [PATCH] Restore ability to set compile cache with env var PIP_TOOLS_CACHE_DIR (#1368) 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(