Skip to content

Commit

Permalink
FIX(ci): Fix split script env in Conda recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeSWang committed Sep 11, 2024
1 parent 0a3a745 commit 5b82588
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions deploy/pkg/conda_recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ build:
# Use Conda-provided compiler.
- export PY_CXX=$CXX
- export PY_CXXFLAGS="${PY_CXXFLAGS} -D_LIBCPP_DISABLE_AVAILABILITY"
# Default to LLVM OpenMP on macOS.
- export PY_CXXFLAGS_OMP="-Xpreprocessor -fopenmp" # [osx]
- export PY_LDFLAGS_OMP="-lomp" # [osx]
- cp .pyproject.toml pyproject.toml
- {{ PYTHON }} -m pip install . -vvv
script_env:
# Optional: Enforce OpenMP support.
- PY_OMP=1
# Default to LLVM OpenMP on macOS.
- PY_CXXFLAGS_OMP="-Xpreprocessor -fopenmp" # [osx]
- PY_LDFLAGS_OMP="-lomp" # [osx]
- PY_BUILD_PARALLEL='-j'

requirements:
Expand Down
6 changes: 3 additions & 3 deletions deploy/pkg/conda_recipe_xp/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ build:
# Use Conda-provided compiler.
- export PY_CXX=$CXX
- export PY_CXXFLAGS="${PY_CXXFLAGS} -D_LIBCPP_DISABLE_AVAILABILITY"
# Default to LLVM OpenMP on macOS.
- export PY_CXXFLAGS_OMP="-Xpreprocessor -fopenmp" # [osx]
- export PY_LDFLAGS_OMP="-lomp" # [osx]
- cp .pyproject.toml pyproject.toml
- {{ PYTHON }} -m pip install . -vvv
script_env:
# Enforce OpenMP support.
- PY_OMP=1
# Default to LLVM OpenMP on macOS.
- PY_CXXFLAGS_OMP="-Xpreprocessor -fopenmp" # [osx]
- PY_LDFLAGS_OMP="-lomp" # [osx]
- PY_BUILD_PARALLEL='-j'

requirements:
Expand Down

0 comments on commit 5b82588

Please sign in to comment.