Skip to content

Commit

Permalink
wf: conda compiler for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLapous committed Nov 25, 2024
1 parent 4afd451 commit 715d9fb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/python_PR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,13 @@ jobs:
micromamba install boost-cpp 'gudhi>=3.10' 'numpy>=2' pot 'cython>=3' pytest scikit-learn matplotlib boost joblib tqdm scipy tbb tbb-devel -c conda-forge
pip install pykeops filtration-domination --upgrade
if [[ ${{ matrix.os }} =~ "ubuntu-".* ]]; then
micromamba install cxx-compiler=1.6 -c conda-forge
fi
if [[ ${{ matrix.os }} =~ "windows-".* ]]; then
micromamba install cxx-compiler=1.6 -c conda-forge
fi
micromamba install c-compiler=1.6 cxx-compiler=1.6 -c conda-forge
# if [[ ${{ matrix.os }} =~ "ubuntu-".* ]]; then
# micromamba install cxx-compiler=1.6 -c conda-forge
# fi
# if [[ ${{ matrix.os }} =~ "windows-".* ]]; then
# micromamba install cxx-compiler=1.6 -c conda-forge
# fi
- name: Build package
shell: bash -el {0}
Expand All @@ -69,6 +70,7 @@ jobs:
if [[ ${{ matrix.os }} =~ "windows-".* ]]; then
set LIBPATH=%LIBPATH%;C:\Miniconda\envs\build_test_env\Library\lib
fi
python setup.py build_ext -j4 --inplace bdist_wheel
- name: Fix wheels on Linux and Macos
Expand All @@ -77,7 +79,7 @@ jobs:
micromamba activate build
if [[ ${{ matrix.os }} =~ "ubuntu-".* ]]; then
cd dist
pip install auditwheel --upgrade
micromamba install auditwheel -c conda-forge
for wheel_file in multipers*linux*.whl; do
auditwheel show $wheel_file
auditwheel repair $wheel_file --plat manylinux_2_34_x86_64
Expand All @@ -88,7 +90,7 @@ jobs:
fi
if [[ ${{ matrix.os }} == "macos-13" ]]; then
cd dist
pip install delocate --upgrade
micromamba install delocate -c conda-forge
for wheel_file in multipers*macosx*x86*.whl; do
delocate-listdeps $wheel_file
delocate-wheel --require-archs x86_64 -w wheelhouse -v $wheel_file
Expand All @@ -109,6 +111,7 @@ jobs:
mv wheelhouse/*.whl . # retrieves repaired wheels
cd ..
fi
- name: Install and Test
shell: bash -el {0}
run: |
Expand Down
12 changes: 6 additions & 6 deletions _tempita_grid_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
for stuff in (
"INTRUSIVE_SET",
# "SET",
"HEAP",
# "HEAP",
# "UNORDERED_SET",
"NAIVE_VECTOR",
# "NAIVE_VECTOR",
# "VECTOR",
# "INTRUSIVE_LIST",
# "LIST",
Expand All @@ -22,10 +22,10 @@

## Value types : CTYPE, PYTHON_TYPE, short
value_types = [
("int32_t", "np.int32", "i32"), # necessary
("int64_t", "np.int64", "i64"),
("float", "np.float32", "f32"), # necessary for mma (TODO: fixme)
("double", "np.float64", "f64"), # necessary
("int32_t", "np.int32", "i32"), # necessary
("int64_t", "np.int64", "i64"),
("float", "np.float32", "f32"), # necessary for mma (TODO: fixme)
("double", "np.float64", "f64"), # necessary
]

## True, False necessary
Expand Down

0 comments on commit 715d9fb

Please sign in to comment.