mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
gh-99370: Prefer LIBDIR from sysconfig when locating libpython for test (GH-99523)
(cherry picked from commit 7c57857340)
Co-authored-by: Steve Dower <steve.dower@python.org>
This commit is contained in:
parent
a06fb519af
commit
0014ce7d0d
1 changed files with 3 additions and 1 deletions
|
|
@ -594,7 +594,9 @@ def test_zippath_from_non_installed_posix(self):
|
|||
# For python built with shared enabled. We need to set
|
||||
# LD_LIBRARY_PATH so the non-installed python can find and link
|
||||
# libpython.so
|
||||
ld_library_path = os.path.abspath(os.path.dirname(sys.executable))
|
||||
ld_library_path = sysconfig.get_config_var("LIBDIR")
|
||||
if not ld_library_path or sysconfig.is_python_build():
|
||||
ld_library_path = os.path.abspath(os.path.dirname(sys.executable))
|
||||
if sys.platform == 'darwin':
|
||||
ld_library_path_env = "DYLD_LIBRARY_PATH"
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue