-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merging so that Alex doesn't break me on the wheel like the OpenSSL 1…
….0.2u users (resolving historical discrepancies within my branch; custodial merge-commit-push)
- Loading branch information
Showing
85 changed files
with
1,668 additions
and
566 deletions.
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
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
- project: | ||
check: | ||
jobs: | ||
- pyca-cryptography-build-wheel-arm64 | ||
- pyca-cryptography-build-wheel-x86_64 | ||
- pyca-cryptography-ubuntu-focal-py38-arm64 | ||
- pyca-cryptography-ubuntu-bionic-py36-arm64 | ||
- pyca-cryptography-centos-8-py36-arm64 | ||
- pyca-cryptography-centos-8-py27-arm64 | ||
release: | ||
jobs: | ||
- pyca-cryptography-build-wheel-arm64 | ||
- pyca-cryptography-build-wheel-x86_64 |
File renamed without changes.
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,6 @@ | ||
- hosts: all | ||
tasks: | ||
|
||
- name: Build wheel | ||
include_role: | ||
name: build-wheel-manylinux |
1 change: 1 addition & 0 deletions
1
.zuul.playbooks/playbooks/wheel/roles/build-wheel-manylinux/README.rst
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 @@ | ||
Build manylinux wheels for cryptography |
51 changes: 51 additions & 0 deletions
51
.zuul.playbooks/playbooks/wheel/roles/build-wheel-manylinux/files/build-wheels.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,51 @@ | ||
#!/bin/bash -ex | ||
|
||
# Compile wheels | ||
cd /io | ||
|
||
mkdir -p wheelhouse.final | ||
|
||
for P in ${PYTHONS}; do | ||
|
||
PYBIN=/opt/python/${P}/bin | ||
|
||
"${PYBIN}"/python -m virtualenv .venv | ||
|
||
.venv/bin/pip install cffi six ipaddress "enum34; python_version < '3'" | ||
|
||
REGEX="cp3([0-9])*" | ||
if [[ "${PYBIN}" =~ $REGEX ]]; then | ||
PY_LIMITED_API="--py-limited-api=cp3${BASH_REMATCH[1]}" | ||
fi | ||
|
||
LDFLAGS="-L/opt/pyca/cryptography/openssl/lib" \ | ||
CFLAGS="-I/opt/pyca/cryptography/openssl/include -Wl,--exclude-libs,ALL" \ | ||
.venv/bin/python setup.py bdist_wheel $PY_LIMITED_API | ||
|
||
auditwheel repair --plat ${PLAT} -w wheelhouse/ dist/cryptography*.whl | ||
|
||
# Sanity checks | ||
# NOTE(ianw) : no execstack on aarch64, comes from | ||
# prelink, which was never supported. CentOS 8 does | ||
# have it separate, skip for now. | ||
if [[ "${PLAT}" != "manylinux2014_aarch64" ]]; then | ||
for f in wheelhouse/*.whl; do | ||
unzip $f -d execstack.check | ||
|
||
results=$(execstack execstack.check/cryptography/hazmat/bindings/*.so) | ||
count=$(echo "$results" | grep -c '^X' || true) | ||
if [ "$count" -ne 0 ]; then | ||
exit 1 | ||
fi | ||
rm -rf execstack.check | ||
done | ||
fi | ||
|
||
.venv/bin/pip install cryptography --no-index -f wheelhouse/ | ||
.venv/bin/python -c "from cryptography.hazmat.backends.openssl.backend import backend;print('Loaded: ' + backend.openssl_version_text());print('Linked Against: ' + backend._ffi.string(backend._lib.OPENSSL_VERSION_TEXT).decode('ascii'))" | ||
|
||
# Cleanup | ||
mv wheelhouse/* wheelhouse.final | ||
rm -rf .venv dist wheelhouse | ||
|
||
done |
Oops, something went wrong.