Commits

Anselm Kruis committed 8340325

Fixed linux bugs:
- corrupt libpython if prefix or exec_prefix is long
- wrong permissions for slpython2.7

Comments (0)

Files changed (2)

 *.bak
 
 syntax: regexp
-stackless.*\.tar\.bz2
+^stackless.*\.tar\.bz2
+^stackless.*export$
 syntax: regexp
 ^build$
 syntax: regexp
 from distutils.command.install_data import install_data
 from distutils.command.build_clib import build_clib
 from distutils.command.install_lib import install_lib
+from distutils.command.install_scripts import install_scripts
+
 # from distutils.command import build
 from distutils import log
 from distutils import filelist
 platform = get_platform()
 distRoot = dirname(__file__)
 
+scripts = []
 libraries = []
 data_files=[]
 packages=[]
 py_modules = []
 cmdclass = {}
 
-
 class my_build_clib(build_clib):
     """A build_clib command with a hook option to build data targets""" 
     def build_libraries(self, libraries):
         if not self.skip_build:
             if self.distribution.has_c_libraries():
                 self.run_command('build_clib')
-                                    
+         
+                                   
 cmdclass['build_clib'] = my_build_clib
 cmdclass['install_data'] = my_install_data
 
                      ('pylib', dict(sources = [ pylib ], build_method='build_pylib_linux', install_dir=pylibdest ))
     )
     
-    data_files.append((pybindest, [pyexe]))
+    scripts.append(pyexe)
     packages.extend(["distutils", "distutils.command"])
     py_modules.extend(['copy_reg', 'pickle', 'platform'])
 
                 self.mkpath(self.install_dir)
                 return install_lib.install(self)
             finally:
-                self.install_dir = savedInstallDir 
+                self.install_dir = savedInstallDir
+                 
+    class my_install_scripts(install_scripts):
+        def initialize_options (self):
+            install_scripts.initialize_options(self)
+            self.install_dir = pybindest
             
     cmdclass['install_lib'] = my_install_lib
+    cmdclass['install_scripts'] = my_install_scripts
     
-    
-
         
 else:
     raise NotImplementedError("Platform %s not yet supported" % (platform,))
     packages=packages,
     py_modules = py_modules,
     libraries = libraries,
-    data_files=data_files, 
+    data_files=data_files,
+    scripts = scripts, 
     long_description=open("README.rst").read(),
     classifiers=[
           "License :: OSI Approved :: Python Software Foundation License",