Skip to content

Commit a30ce17

Browse files
committed
Retain LIBPYTHON_SHARED_LIBRARY= on Linux?
1 parent 8cc2387 commit a30ce17

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cpython-unix/build-cpython.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,12 @@ if [[ "${PYBUILD_SHARED}" = "1" && -n "${PYTHON_MEETS_MAXIMUM_VERSION_3_14}" ]]
832832
fi
833833
fi
834834
fi
835+
else
836+
# For Python 3.15+ on Linux, we still need to define LIBPYTHON_SHARED_LIBRARY for glibc version detection
837+
if [[ "${PYBUILD_PLATFORM}" != macos* ]]; then
838+
LIBPYTHON_SHARED_LIBRARY_BASENAME=libpython${PYTHON_MAJMIN_VERSION}${PYTHON_BINARY_SUFFIX}.so.1.0
839+
LIBPYTHON_SHARED_LIBRARY=${ROOT}/out/python/install/lib/${LIBPYTHON_SHARED_LIBRARY_BASENAME}
840+
fi
835841
fi
836842

837843
# Install setuptools and pip as they are common tools that should be in any

0 commit comments

Comments
 (0)