Skip to content

Commit

Permalink
Build the interface first
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanwweber committed Feb 13, 2022
1 parent ba690f2 commit d6afa77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cantera/build_py.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ if [ -d "build/python" ]; then
rm $PREFIX/bin/ctml2yaml || true
fi

${BUILD_PREFIX}/bin/python `which scons` build python_package='y' python_cmd="${PYTHON}"

if [[ "$target_platform" == osx-* ]]; then
VERSION=$(echo $PKG_VERSION | cut -db -f1)
file_to_fix=$(find $SP_DIR -name "_cantera*.so" | head -n 1)
${OTOOL:-otool} -L $file_to_fix
${INSTALL_NAME_TOOL:-install_name_tool} -change build/lib/libcantera.${VERSION}.dylib "@rpath/libcantera.${VERSION}.dylib" $file_to_fix
fi

${BUILD_PREFIX}/bin/python `which scons` build python_package='y' python_cmd="${PYTHON}"

$PYTHON -m pip install --no-deps build/python/dist/*.whl
$PYTHON -m pip install --no-deps build/python

echo "********************************"
echo "PYTHON ${PY_VER} BUILD COMPLETED"
Expand Down

0 comments on commit d6afa77

Please sign in to comment.