Skip to content

Commit

Permalink
Disable Python 2.7 macOS builds
Browse files Browse the repository at this point in the history
  • Loading branch information
nightlark committed Mar 7, 2020
1 parent a777d7c commit de2e455
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions helics-pip/packaging_scripts/build-macOS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

export CMAKE_PREFIX_PATH

# Disable SWIG for these builds
mv /usr/local/bin/swig /usr/local/bin/swig-bak || true
pushd helics-pip || exit $?
OLD_PATH=$PATH
for PYDIR in "${RUNNER_TOOL_CACHE}"/Python/3*/x64; do
Expand All @@ -15,8 +17,13 @@ for PYDIR in "${RUNNER_TOOL_CACHE}"/Python/3*/x64; do
python setup.py bdist_wheel --dist-dir=../wheelhouse
done

# Swig is already installed on macOS
brew install swig
# Disable building the 2.7 interface for now
# HELICS 2.4.1 has a bug that prevents building Python interfaces with SWIG
# And Python 2.7 interface builds require swig
exit 0

# Swig is already installed on macOS, reenable it
mv /usr/local/bin/swig-bak /usr/local/bin/swig
for PYDIR in "${RUNNER_TOOL_CACHE}"/Python/2*/x64; do
pythonLocation="${PYDIR}"
export pythonLocation
Expand Down

0 comments on commit de2e455

Please sign in to comment.