-
Notifications
You must be signed in to change notification settings - Fork 2
[main] Add manylinux2_28 to wheel names #77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 5 commits
d6076d5
0801b48
8e5dada
f3f2004
30bec32
6d03a15
d1eaa1c
50ddb76
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,7 +13,7 @@ SOURCE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" | |
| # so manually do the work of copying dependency libs and patchelfing | ||
| # and fixing RECORDS entries correctly | ||
| ###################################################################### | ||
|
|
||
| PLATFORM="manylinux2014_x86_64" | ||
| fname_with_sha256() { | ||
| HASH=$(sha256sum $1 | cut -c1-8) | ||
| DIRNAME=$(dirname $1) | ||
|
|
@@ -152,6 +152,11 @@ for pkg in /$WHEELHOUSE_DIR/torch_no_python*.whl /$WHEELHOUSE_DIR/${WHEELNAME_MA | |
| $PATCHELF_BIN --set-rpath ${LIB_SO_RPATH:-'$ORIGIN'} ${FORCE_RPATH:-} $sofile | ||
| $PATCHELF_BIN --print-rpath $sofile | ||
| done | ||
| # create Manylinux 2_28 tag this needs to happen before regenerate the RECORD | ||
| if [[ $PLATFORM == "manylinux_2_28_x86_64" ]]; then | ||
| wheel_file=$(basename "$pkg" | sed -e 's/-cp.*$/.dist-info\/WHEEL/g') | ||
| sed -i -e s#linux_x86_64#"${PLATFORM}"# $wheel_file; | ||
| fi | ||
|
|
||
| # regenerate the RECORD file with new hashes | ||
| # record_file=$(echo $(basename $pkg) | sed -e 's/-cp.*$/.dist-info\/RECORD/g') | ||
|
|
@@ -197,6 +202,15 @@ for pkg in /$WHEELHOUSE_DIR/torch_no_python*.whl /$WHEELHOUSE_DIR/${WHEELNAME_MA | |
|
|
||
| popd | ||
| fi | ||
| # Rename wheel for Manylinux 2_28 | ||
| if [[ $PLATFORM == "manylinux_2_28_x86_64" ]]; then | ||
| wheel_file=$(basename "$pkg" | sed -e 's/-cp.*$/.dist-info\/WHEEL/') | ||
| sed -i -e "s#linux_x86_64#${PLATFORM}#" "$wheel_file" | ||
|
|
||
| zip -rq "$(basename "$pkg" | sed -e "s#linux_x86_64#${PLATFORM}#")" "${PREFIX}"* | ||
|
||
| else | ||
| zip -rq "$(basename "$pkg")" "${PREFIX}"* | ||
| fi | ||
|
|
||
| # zip up the wheel back | ||
| zip -rq $(basename $pkg) $PREIX* | ||
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These need to go