Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
kiyoon committed Oct 17, 2024
1 parent 4d6f2c1 commit 70847d1
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions build_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,19 @@ mv "$TEMP_DIR/metis/5.1.0/lib/libmetis.dylib" "$PYTHON_PACKAGE_DIR/lib"

build_wheel

# 2. macosx_11_0_x86_64
# 2. macosx_10_15_x86_64
prepare_python_in_temp_dir

# NOTE: otools say it's 11.6 but for that number it won't be compatible with any mac version even above 12.
# https://github.com/pytorch/pytorch/issues/47978
# Thus, we annotate macosx_11_0_x86_64, for now.
PLATFORM_NAME="macosx_11_0_x86_64"
# rm -rf "${PYTHON_PACKAGE_DIR:?}/bin" # ${var:?} to ensure it doesn't expand to /bin !
# mkdir "$PYTHON_PACKAGE_DIR/bin"
unzip "$SCRIPT_DIR/data/apbs-${APBS_VERSION}/APBS-${APBS_VERSION}.Darwin.zip" -d "$TEMP_DIR"
mv "$TEMP_DIR/APBS-${APBS_VERSION}.Darwin/bin/apbs" "$PYTHON_PACKAGE_DIR/bin"
mv "$TEMP_DIR/APBS-${APBS_VERSION}.Darwin/share/apbs/tools/bin/"* "$PYTHON_PACKAGE_DIR/bin"
PLATFORM_NAME="macosx_10_15_x86_64"
# unzip "$SCRIPT_DIR/data/apbs-${APBS_VERSION}/APBS-${APBS_VERSION}.Darwin.zip" -d "$TEMP_DIR"
# mv "$TEMP_DIR/APBS-${APBS_VERSION}.Darwin/bin/apbs" "$PYTHON_PACKAGE_DIR/bin"
# mv "$TEMP_DIR/APBS-${APBS_VERSION}.Darwin/share/apbs/tools/bin/"* "$PYTHON_PACKAGE_DIR/bin"
tar xvzf "$SCRIPT_DIR/data/apbs-$APBS_VERSION/macosx_10_15_x86_64/apbs.tar.gz" -C "$TEMP_DIR"
tar xvzf "$SCRIPT_DIR/data/apbs-$APBS_VERSION/macosx_10_15_x86_64/metis.tar.gz" -C "$TEMP_DIR"
mv "$TEMP_DIR/apbs/${APBS_VERSION}_2/bin/apbs" "$PYTHON_PACKAGE_DIR/bin"
mv "$TEMP_DIR/apbs/${APBS_VERSION}_2/share/apbs/tools/bin/"* "$PYTHON_PACKAGE_DIR/bin"
mkdir -p "$PYTHON_PACKAGE_DIR/lib"
mv "$TEMP_DIR/metis/5.1.0/lib/libmetis.dylib" "$PYTHON_PACKAGE_DIR/lib"

build_wheel

Expand Down

0 comments on commit 70847d1

Please sign in to comment.