diff options
-rw-r--r-- | .azure-pipelines/wheel-builder.yml | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/.azure-pipelines/wheel-builder.yml b/.azure-pipelines/wheel-builder.yml index 2d82cb34..3d867c7f 100644 --- a/.azure-pipelines/wheel-builder.yml +++ b/.azure-pipelines/wheel-builder.yml @@ -35,6 +35,8 @@ jobs: displayName: Create virtualenv - script: .venv/bin/pip install -U wheel displayName: Update wheel to the latest version + - script: .venv/bin/pip install -U pip==10.0.1 + displayName: Downgrade pip lol - script: .venv/bin/pip install cffi six asn1crypto ipaddress "enum34; python_version < '3'" displayName: Install our Python dependencies @@ -50,7 +52,7 @@ jobs: CRYPTOGRAPHY_SUPPRESS_LINK_FLAGS="1" \ LDFLAGS="/usr/local/opt/openssl@1.1/lib/libcrypto.a /usr/local/opt/openssl@1.1/lib/libssl.a" \ CFLAGS="-I/usr/local/opt/openssl@1.1/include -mmacosx-version-min=10.9" \ - .venv/bin/pip wheel cryptography==$BUILD_VERSION --no-use-pep517 --wheel-dir=wheelhouse --no-binary cryptography --no-deps $PY_LIMITED_API + .venv/bin/pip wheel cryptography==$BUILD_VERSION --wheel-dir=wheelhouse --no-binary cryptography --no-deps $PY_LIMITED_API displayName: Build the wheel - script: .venv/bin/pip install --no-index -f wheelhouse cryptography displayName: Test installing the wheel @@ -84,6 +86,8 @@ jobs: steps: - script: /opt/python/$PYTHON_VERSION/bin/python -m virtualenv .venv displayName: Create virtualenv + - script: .venv/bin/pip install -U pip==10.0.1 + displayName: Downgrade pip lol - script: .venv/bin/pip install cffi six asn1crypto ipaddress enum34 displayName: Install our Python dependencies - script: | @@ -96,7 +100,7 @@ jobs: fi LDFLAGS="-L/opt/pyca/cryptography/openssl/lib" \ CFLAGS="-I/opt/pyca/cryptography/openssl/include -Wl,--exclude-libs,ALL" \ - .venv/bin/pip wheel cryptography==$BUILD_VERSION --no-use-pep517 --no-binary cryptography --no-deps --wheel-dir=tmpwheelhouse $PY_LIMITED_API + .venv/bin/pip wheel cryptography==$BUILD_VERSION --no-binary cryptography --no-deps --wheel-dir=tmpwheelhouse $PY_LIMITED_API displayName: Build the wheel - script: auditwheel repair tmpwheelhouse/cryptograph*.whl -w wheelhouse/ displayName: Run auditwheel @@ -181,12 +185,14 @@ jobs: OPENSSL_DIR: 'OpenSSL-Win64-2015' WINDOWS_ARCH: 'x86_64' steps: + - script: '"C:/Python%PYTHON_VERSION%/python.exe" -m pip install -U pip==10.0.1' + displayName: Downgrade pip lol - script: '"C:/Python%PYTHON_VERSION%/Scripts/pip" install wheel cffi six asn1crypto ipaddress enum34' displayName: Install wheel and our Python dependencies - script: | set INCLUDE=C:/%OPENSSL_DIR%/include;%INCLUDE% set LIB=C:/%OPENSSL_DIR%/lib;%LIB% - C:/Python%PYTHON_VERSION%/Scripts/pip wheel cryptography==%BUILD_VERSION% --no-use-pep517 --wheel-dir=wheelhouse --no-binary cryptography + C:/Python%PYTHON_VERSION%/Scripts/pip wheel cryptography==%BUILD_VERSION% --wheel-dir=wheelhouse --no-binary cryptography displayName: Build the wheel - script: '"C:/Python%PYTHON_VERSION%/Scripts/pip" install -f wheelhouse cryptography --no-index' displayName: Test installing the wheel |