File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1818REVISION=" python-${VERSION} "
1919initialise " ${REVISION} " " ${OUTPUT} " " ${LAST_REVISION} "
2020
21- curl -sL https://www. python.org/ftp/python/ ${VERSION} /Python- ${VERSION} .tar.xz | tar Jxf -
21+ curl -sL https://github.com/ python/cpython/archive/refs/tags/v ${VERSION} .tar.gz | tar zxf -
2222
2323SSL_PREFIX=/root/ssl
2424SSL_VERSION=3.3.2
@@ -37,7 +37,7 @@ export LD_LIBRARY_PATH=${SSL_PREFIX}/lib64
3737
3838DEST=/root/python
3939
40- pushd Python -${VERSION}
40+ pushd cpython -${VERSION}
4141./configure \
4242 --prefix=${DEST} \
4343 --with-openssl=${SSL_PREFIX} \
5252# copy SSL SOs to the same directory as the native python modules
5353cp ${SSL_PREFIX} /lib64/* .so* /root/python/lib/python* /lib-dynload/
5454
55- # then patch the ssl to look at $ORIGIN to find the crypto libs
55+ # then patch the ssl and hashlib to look at $ORIGIN to find the crypto libs
5656patchelf --set-rpath \$ ORIGIN /root/python/lib/python* /lib-dynload/_ssl* .so
57+ patchelf --set-rpath \$ ORIGIN /root/python/lib/python* /lib-dynload/_hashlib* .so
5758
5859# strip executables
5960find ${DEST} -type f -perm /u+x -exec strip -d {} \;
You can’t perform that action at this time.
0 commit comments