-
Notifications
You must be signed in to change notification settings - Fork 40
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
MuslLinux Wheels #480
Merged
Merged
MuslLinux Wheels #480
Changes from 8 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
994ef10
Add CI and CD files
waahm7 ab14b02
needs_compiler false for musl linux as well
waahm7 c0c04f5
remove extra CI
waahm7 62c40c6
Merge branch 'main' into musl-linux
waahm7 8dfc414
Merge branch 'python-312' into musl-linux
waahm7 c3748fb
remove x86
waahm7 f976d63
reset ci.yml
waahm7 5fc42cf
remove extras
waahm7 7f7a685
add 3.12 comments
waahm7 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
continuous-delivery/build-wheels-musllinux-1-1-aarch64-jenkins.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
#run build-wheels script in musllinux_1_1 docker image | ||
set -ex | ||
|
||
DOCKER_IMAGE=123124136734.dkr.ecr.us-east-1.amazonaws.com/aws-crt-musllinux-1-1-aarch64:latest | ||
|
||
$(aws --region us-east-1 ecr get-login --no-include-email) | ||
|
||
docker pull $DOCKER_IMAGE | ||
|
||
# NOTE: run as current user to avoid git "dubious ownership" error, | ||
# and so that output artifacts don't belong to "root" | ||
docker run --rm \ | ||
--mount type=bind,source=`pwd`,target=/aws-crt-python \ | ||
--user "$(id -u):$(id -g)" \ | ||
--workdir /aws-crt-python \ | ||
--entrypoint /bin/bash \ | ||
$DOCKER_IMAGE \ | ||
continuous-delivery/build-wheels-musllinux-1-1-aarch64.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
#assumes image based on musllinux_1_1 | ||
set -ex | ||
|
||
/opt/python/cp39-cp39/bin/python ./continuous-delivery/update-version.py | ||
|
||
/opt/python/cp37-cp37m/bin/python setup.py sdist bdist_wheel | ||
auditwheel repair --plat musllinux_1_1_aarch64 dist/awscrt-*cp37*.whl | ||
|
||
/opt/python/cp38-cp38/bin/python setup.py sdist bdist_wheel | ||
auditwheel repair --plat musllinux_1_1_aarch64 dist/awscrt-*cp38*.whl | ||
|
||
/opt/python/cp39-cp39/bin/python setup.py sdist bdist_wheel | ||
auditwheel repair --plat musllinux_1_1_aarch64 dist/awscrt-*cp39*.whl | ||
|
||
/opt/python/cp310-cp310/bin/python setup.py sdist bdist_wheel | ||
auditwheel repair --plat musllinux_1_1_aarch64 dist/awscrt-*cp310*.whl | ||
|
||
/opt/python/cp311-cp311/bin/python setup.py sdist bdist_wheel | ||
auditwheel repair --plat musllinux_1_1_aarch64 dist/awscrt-*cp311*.whl | ||
|
||
rm dist/*.whl | ||
cp -rv wheelhouse/* dist/ | ||
|
||
#now you just need to run twine (that's in a different script) |
19 changes: 19 additions & 0 deletions
19
continuous-delivery/build-wheels-musllinux-1-1-x86_64-jenkins.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
#run build-wheels script in musllinux_1_1 docker image | ||
set -ex | ||
|
||
DOCKER_IMAGE=123124136734.dkr.ecr.us-east-1.amazonaws.com/aws-crt-musllinux-1-1-x64:latest | ||
|
||
$(aws --region us-east-1 ecr get-login --no-include-email) | ||
|
||
docker pull $DOCKER_IMAGE | ||
|
||
# NOTE: run as current user to avoid git "dubious ownership" error, | ||
# and so that output artifacts don't belong to "root" | ||
docker run --rm \ | ||
--mount type=bind,source=`pwd`,target=/aws-crt-python \ | ||
--user "$(id -u):$(id -g)" \ | ||
--workdir /aws-crt-python \ | ||
--entrypoint /bin/bash \ | ||
$DOCKER_IMAGE \ | ||
continuous-delivery/build-wheels-musllinux-1-1-x86_64.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
#assumes image based on musllinux_1_1 + extras (pip) | ||
set -ex | ||
|
||
/opt/python/cp39-cp39/bin/python ./continuous-delivery/update-version.py | ||
|
||
/opt/python/cp37-cp37m/bin/python setup.py sdist bdist_wheel | ||
auditwheel repair --plat musllinux_1_1_x86_64 dist/awscrt-*cp37*.whl | ||
|
||
/opt/python/cp38-cp38/bin/python setup.py sdist bdist_wheel | ||
auditwheel repair --plat musllinux_1_1_x86_64 dist/awscrt-*cp38*.whl | ||
|
||
/opt/python/cp39-cp39/bin/python setup.py sdist bdist_wheel | ||
auditwheel repair --plat musllinux_1_1_x86_64 dist/awscrt-*cp39*.whl | ||
|
||
/opt/python/cp310-cp310/bin/python setup.py sdist bdist_wheel | ||
auditwheel repair --plat musllinux_1_1_x86_64 dist/awscrt-*cp310*.whl | ||
|
||
/opt/python/cp311-cp311/bin/python setup.py sdist bdist_wheel | ||
auditwheel repair --plat musllinux_1_1_x86_64 dist/awscrt-*cp311*.whl | ||
|
||
rm dist/*.whl | ||
cp -rv wheelhouse/* dist/ | ||
|
||
#now you just need to run twine (that's in a different script) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
trivial: Can you add the following comment to all these copy/pasty files? Just to help out any future maintainers
I guess it's weird, since we haven't merge #479 yet ... maybe add the comment to the existing files in that PR, and to the new files in this PR? or just add it to all of them here 🤷♀️