Skip to content

Commit 74fbd38

Browse files
committed
Avoid openssl rebuild if possible
1 parent 3dfe5b6 commit 74fbd38

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

tools/build-openssl.sh

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,26 @@ set -ex
1717

1818
echo "# Building OpenSSL ${OPENSSL_VERSION}"
1919

20-
rm -rf build-openssl
21-
mkdir -p build-openssl
22-
pushd build-openssl
23-
curl -s -l https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz | \
24-
tar -xz --strip-components=1 -f -
20+
21+
if [[ ! -f build-openssl/config ]]; then
22+
rm -rf build-openssl
23+
mkdir -p build-openssl
24+
pushd build-openssl
25+
curl -s -l https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz | \
26+
tar -xz --strip-components=1 -f -
27+
else
28+
echo "Reusing existing build-openssl directory"
29+
pushd build-openssl
30+
fi
31+
2532
./config --prefix=${PREFIX} zlib no-krb5 zlib shared
2633
echo "## building openssl"
2734
time make -j 2>&1 | tail -20
28-
echo "## testing openssl"
29-
time make -j test 2>&1 | tail -20
35+
if [[ ! -f test/PASSED ]]; then
36+
echo "## testing openssl"
37+
time make test 2>&1 | tail -20
38+
touch test/PASSED
39+
fi
3040
echo "## installing openssl"
3141
time make install 2>&1 | tail -20
3242
popd

tools/test-manylinux.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ function run_all_with_docker {
6969
if [[ -z $_wheels ]]; then
7070
echo "No wheels in wheelhouse/, must run build-manylinux.sh first"
7171
exit 1
72+
else
73+
echo "Wheels:"
74+
ls wheelhouse/*.whl
7275
fi
7376

7477
for DOCKER_IMAGE in $DOCKER_IMAGES; do

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy