We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f740e9e commit 01babe7Copy full SHA for 01babe7
docker/build_scripts/build_utils.sh
@@ -57,6 +57,13 @@ function do_cpython_build {
57
# bin/python.
58
if [ -e ${prefix}/bin/python3 ]; then
59
ln -s python3 ${prefix}/bin/python
60
+ ln -s python3-config ${prefix}/bin/python-config
61
+ fi
62
+ # Remove -lpython from the python-config script.
63
+ if [ $(lex_pyver $py_ver) -lt $(lex_pyver 3.4) ]; then
64
+ sed -i "s/'-lpython' *+ *pyver\( *+ *sys.abiflags\)\?/''/" $(readlink -e ${prefix}/bin/python-config)
65
+ else
66
+ sed -i 's/-lpython${VERSION}${ABIFLAGS}//' $(readlink -e ${prefix}/bin/python-config)
67
fi
68
${prefix}/bin/python get-pip.py
69
${prefix}/bin/pip install wheel
0 commit comments