Skip to content

Conversation

ethanwee1
Copy link

@ethanwee1 ethanwee1 commented Apr 24, 2025

fi

# zip up the wheel back
zip -rq $(basename $pkg) $PREIX*
Copy link
Collaborator

@jithunnair-amd jithunnair-amd Jun 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to go

Also the lines below need to move into the if/else condition above:

    # replace original wheel
    rm -f $pkg
    mv $(basename $pkg) $pkg

Comment on lines 207 to 208
wheel_file=$(basename "$pkg" | sed -e 's/-cp.*$/.dist-info\/WHEEL/')
sed -i -e "s#linux_x86_64#${PLATFORM}#" "$wheel_file"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These need to go

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}"*
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternate idea: assign $pkg to $("$pkg" | sed -e "s#linux_x86_64#${PLATFORM}#") so that all the command after can keep referring to $pkg. Not sure if it messes with the iterator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants