-
Notifications
You must be signed in to change notification settings - Fork 917
Add linux ARM64 wheels block in Semaphore #1496
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
Changes from all commits
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 |
---|---|---|
|
@@ -33,7 +33,13 @@ if [[ ! -f /.dockerenv ]]; then | |
exit 1 | ||
fi | ||
|
||
docker run -t -v $(pwd):/io quay.io/pypa/manylinux2010_x86_64:latest /io/tools/build-manylinux.sh "$LIBRDKAFKA_VERSION" | ||
if [[ $ARCH == arm64* ]]; then | ||
docker_image=quay.io/pypa/manylinux_2_28_aarch64:latest | ||
else | ||
docker_image=quay.io/pypa/manylinux_2_28_x86_64:latest | ||
fi | ||
|
||
docker run -t -v $(pwd):/io $docker_image /io/tools/build-manylinux.sh "v${LIBRDKAFKA_VERSION}" | ||
|
||
exit $? | ||
fi | ||
|
@@ -44,14 +50,14 @@ fi | |
# | ||
|
||
echo "# Installing basic system dependencies" | ||
yum install -y zlib-devel gcc-c++ | ||
yum install -y zlib-devel gcc-c++ python3 curl-devel perl-IPC-Cmd perl-Pod-Html | ||
|
||
echo "# Building librdkafka ${LIBRDKAFKA_VERSION}" | ||
$(dirname $0)/bootstrap-librdkafka.sh --require-ssl ${LIBRDKAFKA_VERSION} /usr | ||
|
||
# Compile wheels | ||
echo "# Compile" | ||
for PYBIN in /opt/python/*/bin; do | ||
for PYBIN in /opt/python/cp*/bin; do | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To only build wheels using CPython |
||
echo "## Compiling $PYBIN" | ||
CFLAGS="-Werror -Wno-strict-aliasing -Wno-parentheses" \ | ||
"${PYBIN}/pip" wheel /io/ -w unrepaired-wheelhouse/ | ||
|
@@ -73,13 +79,13 @@ done | |
|
||
# Install packages and test | ||
echo "# Installing wheels" | ||
for PYBIN in /opt/python/*/bin/; do | ||
for PYBIN in /opt/python/cp*/bin/; do | ||
echo "## Installing $PYBIN" | ||
"${PYBIN}/pip" install confluent_kafka -f /io/wheelhouse | ||
"${PYBIN}/python" -c 'import confluent_kafka; print(confluent_kafka.libversion())' | ||
"${PYBIN}/pip" install -r /io/tests/requirements.txt | ||
"${PYBIN}/pytest" /io/tests/test_Producer.py | ||
echo "## Uninstalling $PYBIN" | ||
"${PYBIN}/pip" uninstall -y confluent_kafka | ||
done | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add a new line at the end of the files to adhere to the styling followed in the repo. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Check other files in the PR as well There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated. |
||
|
||
|
||
|
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 3 commands can be removed, as semaphore provided command
checkout
does all of this.