aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/python-3-search-paths.patch
blob: 7feddb8e3084fdd4db349f03ccd54de2a42e3772 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Make sure the build system honors C_INCLUDE_PATH and LIBRARY_PATH when
looking for headers and libraries.

--- setup.py	2015-10-07 23:32:58.891329173 +0200
+++ setup.py	2015-10-07 23:46:29.653349924 +0200
@@ -507,11 +507,8 @@ class PyBuildExt(build_ext):
         # if a file is found in one of those directories, it can
         # be assumed that no additional -I,-L directives are needed.
         if not cross_compiling:
-            lib_dirs = self.compiler.library_dirs + [
-                '/lib64', '/usr/lib64',
-                '/lib', '/usr/lib',
-                ]
-            inc_dirs = self.compiler.include_dirs + ['/usr/include']
+            lib_dirs = os.getenv('LIBRARY_PATH', '').split(os.pathsep)
+            inc_dirs = os.getenv('C_INCLUDE_PATH', '').split(os.pathsep)
         else:
             lib_dirs = self.compiler.library_dirs[:]
             inc_dirs = self.compiler.include_dirs[:]
1b82d5974f2db9bf9f0'>gnu: dotconf: Remove custom bootstrap phase....Ricardo Wurmus 2018-11-11gnu: libgtextutils: Remove custom bootstrap phase....Ricardo Wurmus 2018-11-10gnu: Add opencc....Meiyo Peng 2018-11-01gnu: oniguruma: Update to 6.9.0....Tobias Geerinckx-Rice 2018-10-09gnu: docx2txt: End phases with #t....Tobias Geerinckx-Rice 2018-10-01gnu: recode: Update to 3.7.1....Tobias Geerinckx-Rice 2018-08-27Update email for Pierre Neidhardt....Pierre Neidhardt 2018-07-12gnu: php: Build with an older oniguruma....Marius Bakke 2018-07-12gnu: oniguruma: Update to 6.8.2....Marius Bakke 2018-07-07gnu: Add docx2txt....Pierre Neidhardt 2018-04-30Merge branch 'master' into core-updatesMark H Weaver 2018-04-29gnu: utf8proc: Update to 2.1.1....Tobias Geerinckx-Rice 2018-04-29gnu: Use HTTPS for julialang.org home pages....Tobias Geerinckx-Rice 2018-04-10Merge branch 'master' into core-updatesMark H Weaver 2018-04-02gnu: libconfig: Update to 1.7.2....Marius Bakke 2018-03-20Merge branch 'master' into core-updatesMark H Weaver 2018-03-20Correct name and Email for ng0....ng0 2018-03-16gnu: All snippets report errors using exceptions, else return #t....Mark H Weaver 2018-03-13gnu: python-editdistance: Use 'invoke'....Efraim Flashner 2018-03-13gnu: python-editdistance: Declare a source file-name....Efraim Flashner 2018-03-01gnu: dbacl: Use HTTPS home page....Tobias Geerinckx-Rice 2018-03-01gnu: dbacl: Update phase style....Tobias Geerinckx-Rice 2018-02-25gnu: enca: Update to 1.19....Efraim Flashner 2018-02-25gnu: recode: Update to 3.7....Efraim Flashner 2018-01-30gnu: Add go-github.com-mattn-go-runewidth....Christopher Baines 2018-01-10gnu: utfcpp: Update to 2.3.5....Tobias Geerinckx-Rice 2017-12-19gnu: antiword: Fix broken embedded directory name....Ricardo Wurmus 2017-10-22gnu: Add python-editdistance....Ricardo Wurmus 2017-10-20gnu: dos2unix: Update to 7.4.0....Tobias Geerinckx-Rice 2017-09-20gnu: Use 'modify-phases' syntax....Kei Kebreau 2017-09-04gnu: Put autoconf-related phases immediately after the 'unpack phase....Kei Kebreau 2017-08-29Update e-mail for Kei Kebreau....Kei Kebreau 2017-08-12gnu: catdoc: Fix CVE-2017-11110....Alex Vong 2017-06-20gnu: Add dos2unix....Kei Kebreau 2017-06-20gnu: Move contents of zip module into compression module....Arun Isaac 2017-05-15gnu: Add java-rsyntaxtextarea....Ricardo Wurmus 2017-05-15gnu: Add catdoc....Hartmut Goebel