Skip to content

Commit

Permalink
infra: improve macOS local build experience
Browse files Browse the repository at this point in the history
  • Loading branch information
hadim committed Nov 6, 2024
1 parent d03028e commit ac581d5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# macOS folder metadata
.DS_Store

# macOS specific files
MacOSX*.sdk.tar.xz
SDKs/

# User builds
build_artifacts
miniforge3/

# Compiled Python code
__pycache__
Expand All @@ -21,3 +26,6 @@ __pycache__
.pixi
pixi.toml
pixi.lock

# rattler-build outputs files
output/
2 changes: 1 addition & 1 deletion .scripts/run_docker_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ mkdir -p "$ARTIFACTS"
DONE_CANARY="$ARTIFACTS/conda-forge-build-done"
rm -f "$DONE_CANARY"

DOCKER_RUN_ARGS="-it"
DOCKER_RUN_ARGS="-it ${CONDA_FORGE_DOCKER_RUN_ARGS}"

if [ "${AZURE}" == "True" ]; then
DOCKER_RUN_ARGS=""
Expand Down
4 changes: 4 additions & 0 deletions build-locally.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ def setup_environment(ns):
os.path.dirname(__file__), "SDKs"
)

# The default cache location might not be writable using docker on macOS.
if ns.config.startswith("linux") and platform.system() == "Darwin":
os.environ["CONDA_FORGE_DOCKER_RUN_ARGS"] = "-e XDG_CACHE_HOME=/tmp/rattler_cache"


def run_docker_build(ns):
script = ".scripts/run_docker_build.sh"
Expand Down
2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

0 comments on commit ac581d5

Please sign in to comment.