1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
Description: Add gap library directory
Search libraries in gap's subdirectory where libgap is located.
Author: Tobias Hansen <thansen@debian.org>
--- a/sage/src/setup.py
+++ b/sage/src/setup.py
@@ -12,6 +12,7 @@
from distutils.dep_util import newer_group
from distutils.errors import (DistutilsSetupError, DistutilsModuleError,
DistutilsOptionError)
+import sysconfig
# This import allows instancemethods to be pickable
import fpickle_setup
@@ -87,7 +88,8 @@
include_dirs = sage_include_directories(use_sources=True)
# Look for libraries in $SAGE_LOCAL/lib
-library_dirs = [os.path.join(SAGE_LOCAL, "lib")]
+gap_library_dir = "/usr/lib/%s/gap" % sysconfig.get_config_var('MULTIARCH')
+library_dirs = [os.path.join(SAGE_LOCAL, "lib"), gap_library_dir]
# Manually add -fno-strict-aliasing, which is needed to compile Cython
# and disappears from the default flags if the user has set CFLAGS.
|