equal
deleted
inserted
replaced
1 This patch modifies the setup script to support Solaris. |
1 This patch modifies the setup script to support Solaris. |
2 As it is Solaris-specific, it is not suitable for upstream. |
2 As it is Solaris-specific, it is not suitable for upstream. |
3 |
3 |
4 --- Python-2.7.7/setup.py.~1~ 2014-05-31 11:58:40.000000000 -0700 |
4 --- Python-2.7.8/setup.py.~1~ 2014-06-29 19:05:48.000000000 -0700 |
5 +++ Python-2.7.7/setup.py 2014-06-02 10:51:15.317252625 -0700 |
5 +++ Python-2.7.8/setup.py 2014-07-17 20:37:57.419011542 -0700 |
6 @@ -437,9 +437,9 @@ |
6 @@ -437,9 +437,9 @@ |
7 |
7 |
8 def detect_modules(self): |
8 def detect_modules(self): |
9 # Ensure that /usr/local is always used |
9 # Ensure that /usr/local is always used |
10 - if not cross_compiling: |
10 - if not cross_compiling: |
14 + # add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') |
14 + # add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') |
15 + # add_dir_to_list(self.compiler.include_dirs, '/usr/local/include') |
15 + # add_dir_to_list(self.compiler.include_dirs, '/usr/local/include') |
16 if cross_compiling: |
16 if cross_compiling: |
17 self.add_gcc_paths() |
17 self.add_gcc_paths() |
18 self.add_multiarch_paths() |
18 self.add_multiarch_paths() |
19 @@ -761,6 +761,13 @@ |
19 @@ -763,6 +763,13 @@ |
20 ['/usr/lib/termcap'], |
20 ['/usr/lib/termcap'], |
21 'termcap'): |
21 'termcap'): |
22 readline_libs.append('termcap') |
22 readline_libs.append('termcap') |
23 + |
23 + |
24 + if host_platform == 'sunos5': |
24 + if host_platform == 'sunos5': |
28 + readline_libs = () |
28 + readline_libs = () |
29 + |
29 + |
30 exts.append( Extension('readline', ['readline.c'], |
30 exts.append( Extension('readline', ['readline.c'], |
31 library_dirs=['/usr/lib/termcap'], |
31 library_dirs=['/usr/lib/termcap'], |
32 extra_link_args=readline_extra_link_args, |
32 extra_link_args=readline_extra_link_args, |
33 @@ -2079,7 +2086,8 @@ |
33 @@ -2081,7 +2088,8 @@ |
34 # this option. If you want to compile ctypes with the Sun |
34 # this option. If you want to compile ctypes with the Sun |
35 # compiler, please research a proper solution, instead of |
35 # compiler, please research a proper solution, instead of |
36 # finding some -z option for the Sun compiler. |
36 # finding some -z option for the Sun compiler. |
37 - extra_link_args.append('-mimpure-text') |
37 - extra_link_args.append('-mimpure-text') |
38 + #extra_link_args.append('-mimpure-text') |
38 + #extra_link_args.append('-mimpure-text') |