1 --- Python-2.7.1/Lib/distutils/command/build_ext.py.orig Fri Jul 15 15:32:28 2011 |
1 --- Python-2.7.6/Lib/distutils/command/build_ext.py.~1~ 2013-11-09 23:36:40.000000000 -0800 |
2 +++ Python-2.7.1/Lib/distutils/command/build_ext.py Fri Jul 15 15:37:00 2011 |
2 +++ Python-2.7.6/Lib/distutils/command/build_ext.py 2014-05-14 12:47:04.342901439 -0700 |
3 @@ -637,6 +637,10 @@ |
3 @@ -634,6 +634,10 @@ |
4 filename = self.get_ext_filename(ext_name) |
4 filename = self.get_ext_filename(ext_name) |
5 filename = os.path.split(filename)[-1] |
5 filename = os.path.split(filename)[-1] |
6 |
6 |
7 + # on Solaris we put 64-bit python objects under .../64 |
7 + # on Solaris we put 64-bit python objects under .../64 |
8 + if sys.maxint != 2147483647L: |
8 + if sys.maxint != 2147483647L: |
9 + filename = os.path.join("64", filename) |
9 + filename = os.path.join("64", filename) |
10 + |
10 + |
11 if not self.inplace: |
11 if not self.inplace: |
12 # no further work needed |
12 # no further work needed |
13 # returning : |
13 # returning : |
14 @@ -677,7 +681,14 @@ |
14 @@ -674,7 +678,14 @@ |
15 so_ext = get_config_var('SO') |
15 so_ext = get_config_var('SO') |
16 if os.name == 'nt' and self.debug: |
16 if os.name == 'nt' and self.debug: |
17 return os.path.join(*ext_path) + '_d' + so_ext |
17 return os.path.join(*ext_path) + '_d' + so_ext |
18 - return os.path.join(*ext_path) + so_ext |
18 - return os.path.join(*ext_path) + so_ext |
19 + #return os.path.join(*ext_path) + so_ext |
19 + #return os.path.join(*ext_path) + so_ext |
25 + basename = os.path.basename(path); |
25 + basename = os.path.basename(path); |
26 + return os.path.join(dirname, "64", basename + so_ext) |
26 + return os.path.join(dirname, "64", basename + so_ext) |
27 |
27 |
28 def get_export_symbols (self, ext): |
28 def get_export_symbols (self, ext): |
29 """Return the list of symbols that a shared extension has to |
29 """Return the list of symbols that a shared extension has to |
30 --- Python-2.7.1/Python/import.c.orig Fri Jul 15 15:41:33 2011 |
30 --- Python-2.7.6/Python/import.c.~1~ 2013-11-09 23:36:41.000000000 -0800 |
31 +++ Python-2.7.1/Python/import.c Fri Jul 15 15:46:55 2011 |
31 +++ Python-2.7.6/Python/import.c 2014-05-14 12:53:34.233016586 -0700 |
32 @@ -1197,6 +1197,57 @@ |
32 @@ -1288,6 +1288,57 @@ |
33 static int find_init_module(char *); /* Forward */ |
33 static int find_init_module(char *); /* Forward */ |
34 static struct filedescr importhookdescr = {"", "", IMP_HOOK}; |
34 static struct filedescr importhookdescr = {"", "", IMP_HOOK}; |
35 |
35 |
36 +#ifdef HAVE_STAT |
36 +#ifdef HAVE_STAT |
37 +static char * |
37 +static char * |
85 +#endif |
85 +#endif |
86 + |
86 + |
87 static struct filedescr * |
87 static struct filedescr * |
88 find_module(char *fullname, char *subname, PyObject *path, char *buf, |
88 find_module(char *fullname, char *subname, PyObject *path, char *buf, |
89 size_t buflen, FILE **p_fp, PyObject **p_loader) |
89 size_t buflen, FILE **p_fp, PyObject **p_loader) |
90 @@ -1214,11 +1265,10 @@ |
90 @@ -1302,11 +1353,10 @@ |
91 static struct filedescr fd_builtin = {"", "", C_BUILTIN}; |
91 static struct filedescr fd_builtin = {"", "", C_BUILTIN}; |
92 static struct filedescr fd_package = {"", "", PKG_DIRECTORY}; |
92 static struct filedescr fd_package = {"", "", PKG_DIRECTORY}; |
93 char name[MAXPATHLEN+1]; |
93 char *name; |
94 -#if defined(PYOS_OS2) |
94 -#if defined(PYOS_OS2) |
95 size_t saved_len; |
95 size_t saved_len; |
96 size_t saved_namelen; |
96 size_t saved_namelen; |
97 char *saved_buf = NULL; |
97 char *saved_buf = NULL; |
98 -#endif |
98 -#endif |
99 + |
99 + |
100 if (p_loader != NULL) |
100 if (p_loader != NULL) |
101 *p_loader = NULL; |
101 *p_loader = NULL; |
102 |
102 |
103 @@ -1437,7 +1487,6 @@ |
103 @@ -1513,15 +1563,17 @@ |
|
104 } |
|
105 } |
104 } |
106 } |
105 #endif |
|
106 #endif |
|
107 -#if defined(PYOS_OS2) |
107 -#if defined(PYOS_OS2) |
108 /* take a snapshot of the module spec for restoration |
108 /* take a snapshot of the module spec for restoration |
109 * after the 8 character DLL hackery |
109 * after the 8 character DLL hackery |
110 */ |
110 */ |
111 @@ -1444,8 +1493,11 @@ |
|
112 saved_buf = strdup(buf); |
111 saved_buf = strdup(buf); |
113 saved_len = len; |
112 saved_len = len; |
114 saved_namelen = namelen; |
113 saved_namelen = namelen; |
115 -#endif /* PYOS_OS2 */ |
114 -#endif /* PYOS_OS2 */ |
116 + |
115 + |
119 + len += modify_path(fdp, buf, buflen); |
118 + len += modify_path(fdp, buf, buflen); |
120 +#endif |
119 +#endif |
121 #if defined(PYOS_OS2) && defined(HAVE_DYNAMIC_LOADING) |
120 #if defined(PYOS_OS2) && defined(HAVE_DYNAMIC_LOADING) |
122 /* OS/2 limits DLLs to 8 character names (w/o |
121 /* OS/2 limits DLLs to 8 character names (w/o |
123 extension) |
122 extension) |
124 @@ -1486,14 +1538,13 @@ |
123 @@ -1562,21 +1614,20 @@ |
125 fp = NULL; |
124 fp = NULL; |
126 } |
125 } |
127 } |
126 } |
128 -#if defined(PYOS_OS2) |
127 -#if defined(PYOS_OS2) |
129 + |
128 + |