diff options
author | Hector <10837193+he-b@users.noreply.github.com> | 2020-03-26 22:45:47 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-26 22:45:47 -0500 |
commit | 0ebed5a6184ea7090e501487944382904de6846c (patch) | |
tree | ee576836f82502806f044caab5709d4442d9df2d | |
parent | 2828815a4942181207ef13fe0f6e080f0ec86616 (diff) | |
download | spack-0ebed5a6184ea7090e501487944382904de6846c.tar.gz spack-0ebed5a6184ea7090e501487944382904de6846c.tar.bz2 spack-0ebed5a6184ea7090e501487944382904de6846c.tar.xz spack-0ebed5a6184ea7090e501487944382904de6846c.zip |
fix gdb installation (#15679)
* fix gdb installation
* add reference url
-rw-r--r-- | var/spack/repos/builtin/packages/python/package.py | 7 |
1 files changed, 7 insertions, 0 deletions
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: |