Skip to content

Commit

Permalink
Try everything from a conda environment
Browse files Browse the repository at this point in the history
  • Loading branch information
sjperkins committed Oct 9, 2024
1 parent 606dbd9 commit 668d787
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions ci/scripts/run_cibuildwheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,26 @@ set -x
# OpenMP is not present on macOS by default
if [[ $(uname) == "Darwin" ]]; then
export MACOSX_DEPLOYMENT_TARGET=12.0
if [[ "$CIBW_BUILD" == *-macosx_arm64 ]]; then
OPENMP_URL="https://anaconda.org/conda-forge/llvm-openmp/11.1.0/download/osx-arm64/llvm-openmp-11.1.0-hf3c4609_1.tar.bz2"
else
OPENMP_URL="https://anaconda.org/conda-forge/llvm-openmp/11.1.0/download/osx-64/llvm-openmp-11.1.0-hda6cdc1_1.tar.bz2"
fi
# if [[ "$CIBW_BUILD" == *-macosx_arm64 ]]; then
# OPENMP_URL="https://anaconda.org/conda-forge/llvm-openmp/11.1.0/download/osx-arm64/llvm-openmp-11.1.0-hf3c4609_1.tar.bz2"
# else
# OPENMP_URL="https://anaconda.org/conda-forge/llvm-openmp/11.1.0/download/osx-64/llvm-openmp-11.1.0-hda6cdc1_1.tar.bz2"
# fi

# This depends on miniforge installation
conda create -n arcae-build $OPENMP_URL
PREFIX="$CONDA_HOME/envs/arcae-build"
# conda create -n arcae-build $OPENMP_URL
# PREFIX="$CONDA_HOME/envs/arcae-build"

export CC=/usr/bin/clang
export CXX=/usr/bin/clang++
export CPPFLAGS="$CPPFLAGS -Xpreprocessor -fopenmp"
export CFLAGS="$CFLAGS -I$PREFIX/include"
export CXXFLAGS="$CXXFLAGS -I$PREFIX/include"
export LDFLAGS="$LDFLAGS -Wl,-rpath,$PREFIX/lib -L$PREFIX/lib -lomp"
# export CC=/usr/bin/clang
# export CXX=/usr/bin/clang++
# export CPPFLAGS="$CPPFLAGS -Xpreprocessor -fopenmp"
# export CFLAGS="$CFLAGS -I$PREFIX/include"
# export CXXFLAGS="$CXXFLAGS -I$PREFIX/include"
# export LDFLAGS="$LDFLAGS -Wl,-rpath,$PREFIX/lib -L$PREFIX/lib -lomp"

conda init
conda create -n arcae-build llvm-openmp compilers python
conda activate arcae-build
fi

python -m pip install cibuildwheel
Expand Down

0 comments on commit 668d787

Please sign in to comment.