File tree 3 files changed +36
-4
lines changed 3 files changed +36
-4
lines changed Original file line number Diff line number Diff line change @@ -36,9 +36,9 @@ if [ "${POLICY}" == "manylinux2010" ]; then
36
36
DEVTOOLSET_ROOTPATH=" /opt/rh/devtoolset-8/root"
37
37
PREPEND_PATH=" ${DEVTOOLSET_ROOTPATH} /usr/bin:"
38
38
if [ " ${PLATFORM} " == " i686" ]; then
39
- LD_LIBRARY_PATH_ARG=" ${DEVTOOLSET_ROOTPATH} /usr/lib:${DEVTOOLSET_ROOTPATH} /usr/lib/dyninst:/usr/local/lib "
39
+ LD_LIBRARY_PATH_ARG=" ${DEVTOOLSET_ROOTPATH} /usr/lib:${DEVTOOLSET_ROOTPATH} /usr/lib/dyninst"
40
40
else
41
- LD_LIBRARY_PATH_ARG=" ${DEVTOOLSET_ROOTPATH} /usr/lib64:${DEVTOOLSET_ROOTPATH} /usr/lib:${DEVTOOLSET_ROOTPATH} /usr/lib64/dyninst:${DEVTOOLSET_ROOTPATH} /usr/lib/dyninst:/usr/local/lib64:/usr/local/lib "
41
+ LD_LIBRARY_PATH_ARG=" ${DEVTOOLSET_ROOTPATH} /usr/lib64:${DEVTOOLSET_ROOTPATH} /usr/lib:${DEVTOOLSET_ROOTPATH} /usr/lib64/dyninst:${DEVTOOLSET_ROOTPATH} /usr/lib/dyninst:/usr/local/lib64"
42
42
fi
43
43
elif [ " ${POLICY} " == " manylinux2014" ]; then
44
44
if [ " ${PLATFORM} " == " s390x" ]; then
@@ -49,9 +49,9 @@ elif [ "${POLICY}" == "manylinux2014" ]; then
49
49
DEVTOOLSET_ROOTPATH=" /opt/rh/devtoolset-9/root"
50
50
PREPEND_PATH=" ${DEVTOOLSET_ROOTPATH} /usr/bin:"
51
51
if [ " ${PLATFORM} " == " i686" ]; then
52
- LD_LIBRARY_PATH_ARG=" ${DEVTOOLSET_ROOTPATH} /usr/lib:${DEVTOOLSET_ROOTPATH} /usr/lib/dyninst:/usr/local/lib "
52
+ LD_LIBRARY_PATH_ARG=" ${DEVTOOLSET_ROOTPATH} /usr/lib:${DEVTOOLSET_ROOTPATH} /usr/lib/dyninst"
53
53
else
54
- LD_LIBRARY_PATH_ARG=" ${DEVTOOLSET_ROOTPATH} /usr/lib64:${DEVTOOLSET_ROOTPATH} /usr/lib:${DEVTOOLSET_ROOTPATH} /usr/lib64/dyninst:${DEVTOOLSET_ROOTPATH} /usr/lib/dyninst:/usr/local/lib64:/usr/local/lib "
54
+ LD_LIBRARY_PATH_ARG=" ${DEVTOOLSET_ROOTPATH} /usr/lib64:${DEVTOOLSET_ROOTPATH} /usr/lib:${DEVTOOLSET_ROOTPATH} /usr/lib64/dyninst:${DEVTOOLSET_ROOTPATH} /usr/lib/dyninst:/usr/local/lib64"
55
55
fi
56
56
elif [ " ${POLICY} " == " manylinux_2_24" ]; then
57
57
BASEIMAGE=" ${MULTIARCH_PREFIX} debian:9"
Original file line number Diff line number Diff line change 124
124
# and since it's also needed in the finalize step, everything's
125
125
# centralized in this script to avoid code duplication
126
126
LC_ALL=C ${MY_DIR} /update-system-packages.sh
127
+
128
+ # we'll be removing libcrypt.so.1 later on
129
+ # this is needed to ensure the new one will be found
130
+ # as LD_LIBRARY_PATH does not seem enough.
131
+ # c.f. https://github.com/pypa/manylinux/issues/1022
132
+ echo " /usr/local/lib" > /etc/ld.so.conf.d/manylinux.conf
133
+ ldconfig
Original file line number Diff line number Diff line change @@ -6,6 +6,17 @@ set -exuo pipefail
6
6
# Get script directory
7
7
MY_DIR=$( dirname " ${BASH_SOURCE[0]} " )
8
8
9
+ if [ " ${AUDITWHEEL_POLICY} " == " manylinux2010" ] || [ " ${AUDITWHEEL_POLICY} " == " manylinux2014" ]; then
10
+ PACKAGE_MANAGER=yum
11
+ elif [ " ${AUDITWHEEL_POLICY} " == " manylinux_2_24" ]; then
12
+ export DEBIAN_FRONTEND=noninteractive
13
+ PACKAGE_MANAGER=apt
14
+ apt-get update -qq
15
+ else
16
+ echo " Unsupported policy: '${AUDITWHEEL_POLICY} '"
17
+ exit 1
18
+ fi
19
+
9
20
10
21
for PYTHON in /opt/python/* /bin/python; do
11
22
# Smoke test to make sure that our Pythons work, and do indeed detect as
@@ -23,3 +34,17 @@ patchelf --version
23
34
git --version
24
35
cmake --version
25
36
swig -version
37
+
38
+ # check libcrypt.so.1 can be loaded by some system packages,
39
+ # as LD_LIBRARY_PATH might not be enough.
40
+ # c.f. https://github.com/pypa/manylinux/issues/1022
41
+ if [ " ${PACKAGE_MANAGER} " == " yum" ]; then
42
+ yum -y install openssh-clients
43
+ elif [ " ${PACKAGE_MANAGER} " == " apt" ]; then
44
+ apt-get install -qq -y --no-install-recommends openssh-client
45
+ else
46
+ echo " Unsupported package manager: '${PACKAGE_MANAGER} '"
47
+ exit 1
48
+ fi
49
+ eval " $( ssh-agent) "
50
+ eval " $( ssh-agent -k) "
You can’t perform that action at this time.
0 commit comments