Skip to content

Commit

Permalink
Fix python-config: no longer links with libpython.
Browse files Browse the repository at this point in the history
Also adds python-config symlink to Python 3 installs.

Closes: pypa#85
  • Loading branch information
rdb committed Dec 21, 2016
1 parent f740e9e commit 01babe7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docker/build_scripts/build_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ function do_cpython_build {
# bin/python.
if [ -e ${prefix}/bin/python3 ]; then
ln -s python3 ${prefix}/bin/python
ln -s python3-config ${prefix}/bin/python-config
fi
# Remove -lpython from the python-config script.
if [ $(lex_pyver $py_ver) -lt $(lex_pyver 3.4) ]; then
sed -i "s/'-lpython' *+ *pyver\( *+ *sys.abiflags\)\?/''/" $(readlink -e ${prefix}/bin/python-config)
else
sed -i 's/-lpython${VERSION}${ABIFLAGS}//' $(readlink -e ${prefix}/bin/python-config)
fi
${prefix}/bin/python get-pip.py
${prefix}/bin/pip install wheel
Expand Down

0 comments on commit 01babe7

Please sign in to comment.