Skip to content

Commit

Permalink
Temporarily disable using ExtensibleRate from Python 3.10 on macOS x64
Browse files Browse the repository at this point in the history
  • Loading branch information
speth committed Aug 22, 2023
1 parent f265e94 commit ce54ac0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion recipe/build_py.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,14 @@ $PYTHON -m pip install --no-deps build/python

# Plugin library for loading Cantera Python extensions from C++
mkdir -p $PREFIX/lib
cp $SRC_DIR/build/lib/libcantera_python* $PREFIX/lib/

PY_VERSION=`$PYTHON -c "from sys import version_info as vi; print(f'{vi.major}.{vi.minor}')"`

if [[ "$target_platform" != osx-64 || "$PY_VERSION" != "3.10" ]]; then
# TEMPORARY WORKAROUND: Do not include the shim library for Python 3.10 on Intel Mac
# due to upstream issues; see https://github.com/conda-forge/cantera-feedstock/pull/28
cp $SRC_DIR/build/lib/libcantera_python* $PREFIX/lib/
fi

if [[ "$target_platform" == osx-* ]]; then
VERSION=$(echo $PKG_VERSION | cut -da -f1 | cut -db -f1 | cut -dr -f1)
Expand Down
2 changes: 1 addition & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ outputs:
- ck2yaml --help
- ctml2yaml --help
- yaml2ck --help
- ./test-lib/test-extensiblerate.sh # [not win and build_platform == target_platform]
- ./test-lib/test-extensiblerate.sh # [not win and build_platform == target_platform and not (osx and x86_64 and py == 310)]
- call test-lib\test-extensiblerate.bat # [win]

about:
Expand Down

0 comments on commit ce54ac0

Please sign in to comment.