We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 960376c commit 34bff76Copy full SHA for 34bff76
1 file changed
Apple/__main__.py
@@ -380,7 +380,11 @@ def configure_host_python(
380
with group(f"Downloading dependencies ({host})"):
381
if not prefix_dir.exists():
382
prefix_dir.mkdir()
383
- cache_dir = context.cache_dir or CROSS_BUILD_DIR / "downloads"
+ cache_dir = (
384
+ Path(context.cache_dir).resolve()
385
+ if context.cache_dir
386
+ else CROSS_BUILD_DIR / "downloads"
387
+ )
388
unpack_deps(context.platform, host, prefix_dir, cache_dir)
389
else:
390
print("Dependencies already installed")
@@ -993,6 +997,7 @@ def parse_args() -> argparse.Namespace:
993
997
for cmd in [configure_host, build, ci]:
994
998
cmd.add_argument(
995
999
"--cache-dir",
1000
+ default=os.environ.get("CACHE_DIR"),
996
1001
help="The directory to store cached downloads.",
1002
)
1003
0 commit comments