aboutsummaryrefslogtreecommitdiff
path: root/examples/python2.7/patches/deb-setup.diff
blob: 472fbc7f1d9998033d6ce57b97b5aa01904cdb14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# DP: Don't include /usr/local/include and /usr/local/lib as gcc search paths

--- a/setup.py
+++ b/setup.py
@@ -368,9 +368,9 @@
             os.unlink(tmpfile)
 
     def detect_modules(self):
-        # Ensure that /usr/local is always used
-        add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
-        add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
+        # On Debian /usr/local is always used, so we don't include it twice
+        #add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
+        #add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
         self.add_multiarch_paths()
 
         # Add paths specified in the environment variables LDFLAGS and