예제 #1
0
 def run (self):
     old_data.run(self)
     mkdir(self.data_install_dir)
     if (not hasattr(self.distribution, 'using_py2exe') or \
             not self.distribution.using_py2exe) and self.data_dirs:
        for tpl in self.data_dirs:
             target = os.path.join(self.data_install_dir, tpl[0])
             for d in tpl[1]:
                 copy_tree(d, target, excludes=['.svn*', 'CVS*',
                                                'Makefile*'])
예제 #2
0
파일: setup.py 프로젝트: n1Ray/molmod
 def run(self):
     # Do the normal install_data
     install_data.run(self)
     # Create the file datadir.txt. It's exact content is only known
     # at installation time.
     dist = self.distribution
     libdir = dist.command_obj["install_lib"].install_dir
     for name in dist.packages:
         if '.' not in name:
             destination = os.path.join(libdir, name, "datadir.txt")
             print "Creating %s" % destination
             if not self.dry_run:
                 f = file(destination, "w")
                 print >> f, self.install_dir
                 f.close()
예제 #3
0
파일: setup.py 프로젝트: rfdougherty/nipy
 def run(self):
     install_data.run(self)
     data_install_msgs()
예제 #4
0
 def run(self):
     install_data.run(self)
     data_install_msgs()