Skip to content

Commit 26b4f0e

Browse files
authored
Manylinux1 compilation fix
Origin: PyO3/pyo3#135 (comment)
1 parent 605cadb commit 26b4f0e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

example/build-wheels.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HOME/rust/lib"
99

1010
# Compile wheels
1111
for PYBIN in /opt/python/cp{27,35,36}*/bin; do
12+
export PYTHON_SYS_EXECUTABLE="$PYBIN/python"
1213
export PYTHON_LIB=$(${PYBIN}/python -c "import sysconfig; print(sysconfig.get_config_var('LIBDIR'))")
1314
export LIBRARY_PATH="$LIBRARY_PATH:$PYTHON_LIB"
1415
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PYTHON_LIB"

0 commit comments

Comments
 (0)