From 0ebed5a6184ea7090e501487944382904de6846c Mon Sep 17 00:00:00 2001 From: Hector <10837193+he-b@users.noreply.github.com> Date: Thu, 26 Mar 2020 22:45:47 -0500 Subject: fix gdb installation (#15679) * fix gdb installation * add reference url --- var/spack/repos/builtin/packages/python/package.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/python/package.py b/var/spack/repos/builtin/packages/python/package.py index b35584d2c9..3b675a02b6 100644 --- a/var/spack/repos/builtin/packages/python/package.py +++ b/var/spack/repos/builtin/packages/python/package.py @@ -670,6 +670,11 @@ class Python(AutotoolsPackage): # to ask Python where its LIBDIR is. libdir = self.get_config_var('LIBDIR') + # In Ubuntu 16.04.6 and python 2.7.12 from the system, lib could be + # in LBPL + # https://mail.python.org/pipermail/python-dev/2013-April/125733.html + libpl = self.get_config_var('LIBPL') + # The system Python installation on macOS and Homebrew installations # install libraries into a Frameworks directory frameworkprefix = self.get_config_var('PYTHONFRAMEWORKPREFIX') @@ -679,6 +684,8 @@ class Python(AutotoolsPackage): if os.path.exists(os.path.join(libdir, ldlibrary)): return LibraryList(os.path.join(libdir, ldlibrary)) + elif os.path.exists(os.path.join(libpl, ldlibrary)): + return LibraryList(os.path.join(libpl, ldlibrary)) elif os.path.exists(os.path.join(frameworkprefix, ldlibrary)): return LibraryList(os.path.join(frameworkprefix, ldlibrary)) else: -- cgit v1.2.3-70-g09d2