Files
MINGW-packages/mingw-w64-python2/0105-mingw-MSYS-no-usr-lib-or-usr-include.patch
Ray Donnelly d81e579c18 python 2(+3): patches for dirsep as / and sysconfig
0530-msys-mingw-prefer-unix-sep-if-MSYSTEM.patch
0535-msys-cygwin-semi-native-build-sysconfig.patch

Add a bug-fix from Arch Linux mingw-w64-python 2.7.6
for a memory stomp.

Fix python{3.3m}-config.sh to return correct values.

Tidy up the PKGBUILD files.
2014-01-29 02:08:31 +00:00

30 lines
1.0 KiB
Diff

diff -urN a/setup.py b/setup.py
--- a/setup.py 2014-01-22 20:57:38.519071231 +0000
+++ b/setup.py 2014-01-22 20:57:39.005745414 +0000
@@ -534,15 +534,16 @@
inc_dirs = self.compiler.include_dirs[:]
lib_dirs = self.compiler.library_dirs[:]
if not cross_compiling:
- for d in (
- '/usr/include',
- ):
- add_dir_to_list(inc_dirs, d)
- for d in (
- '/lib64', '/usr/lib64',
- '/lib', '/usr/lib',
- ):
- add_dir_to_list(lib_dirs, d)
+ if not (sys.version.find('GCC') and host_platform in ['mingw', 'win32']):
+ for d in (
+ '/usr/include',
+ ):
+ add_dir_to_list(inc_dirs, d)
+ for d in (
+ '/lib64', '/usr/lib64',
+ '/lib', '/usr/lib',
+ ):
+ add_dir_to_list(lib_dirs, d)
exts = []
missing = []