components/python/python27/patches/02-setup.patch
changeset 3555 76f4672c5e4b
parent 2028 6fa8f5812e20
child 3759 6f5b34e14c5c
equal deleted inserted replaced
3554:ef58713bafc4 3555:76f4672c5e4b
     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.8/setup.py.~1~	2014-06-29 19:05:48.000000000 -0700
     4 --- Python-2.7.9/setup.py.~1~	2014-12-10 08:00:01.000000000 -0800
     5 +++ Python-2.7.8/setup.py	2014-07-17 20:37:57.419011542 -0700
     5 +++ Python-2.7.9/setup.py	2014-12-11 09:16:17.426317139 -0800
     6 @@ -437,9 +437,9 @@
     6 @@ -439,9 +439,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:
    11 -            add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
    11 -            add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
    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 @@ -763,6 +763,13 @@
    19 @@ -765,6 +765,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 @@ -2081,7 +2088,8 @@
    33 @@ -2083,7 +2090,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')