-
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.
Don't use pep517 when building our wheel
Refs #4789, pypa/pip#6304
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,7 +85,7 @@ def build(version, label, imageName) { | |
virtualenv -p %PYTHON% .release | ||
call .release\\Scripts\\activate | ||
pip install wheel virtualenv | ||
pip wheel cryptography==$BUILD_VERSION --wheel-dir=wheelhouse --no-binary cryptography | ||
pip wheel cryptography==$BUILD_VERSION --no-use-pep517 --wheel-dir=wheelhouse --no-binary cryptography | ||
pip install -f wheelhouse cryptography --no-index | ||
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'))" | ||
""" | ||
|
@@ -118,7 +118,7 @@ def build(version, label, imageName) { | |
CRYPTOGRAPHY_SUPPRESS_LINK_FLAGS="1" \ | ||
LDFLAGS="/usr/local/opt/[email protected]/lib/libcrypto.a /usr/local/opt/[email protected]/lib/libssl.a" \ | ||
CFLAGS="-I/usr/local/opt/[email protected]/include -mmacosx-version-min=10.9" \ | ||
pip wheel cryptography==$BUILD_VERSION --wheel-dir=wheelhouse --no-binary cryptography --no-deps \$PY_LIMITED_API | ||
pip wheel cryptography==$BUILD_VERSION --no-use-pep517 --wheel-dir=wheelhouse --no-binary cryptography --no-deps \$PY_LIMITED_API | ||
pip install -f wheelhouse cryptography --no-index | ||
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'))" | ||
otool -L `find .venv -name '_openssl*.so'` | ||
|
@@ -148,7 +148,7 @@ def build(version, label, imageName) { | |
fi | ||
LDFLAGS="-L/opt/pyca/cryptography/openssl/lib" \ | ||
CFLAGS="-I/opt/pyca/cryptography/openssl/include -Wl,--exclude-libs,ALL" \ | ||
$linux32 /opt/python/$version/bin/pip wheel cryptography==$BUILD_VERSION --no-binary cryptography --no-deps --wheel-dir=tmpwheelhouse \$PY_LIMITED_API | ||
$linux32 /opt/python/$version/bin/pip wheel cryptography==$BUILD_VERSION --no-use-pep517 --no-binary cryptography --no-deps --wheel-dir=tmpwheelhouse \$PY_LIMITED_API | ||
$linux32 auditwheel repair tmpwheelhouse/cryptography*.whl -w wheelhouse/ | ||
unzip wheelhouse/*.whl -d execstack.check | ||
chmod -R 777 execstack.check | ||
|