コード例 #1
0
ファイル: bdist_dumb.py プロジェクト: paradoxfxx/PyQwt
 def run(self):
     tag = '_Qt%s%s%s' % tuple(
         get_config('qt').get('qt_version_str').split('.'))
     name = self.distribution.metadata.name
     if -1 == name.find(tag):
         self.distribution.metadata.name = name + tag
     old_bdist_dumb.run(self)
コード例 #2
0
ファイル: setup.py プロジェクト: digideskio/springerdownload
 def run(self):
     bdist_dumb.run(self)
     for t,_,f in self.distribution.dist_files:
         if t == "bdist_dumb":
             zipfile = open(f,"r")
             exef = os.path.join(os.path.dirname(f), "springer_download")
             exefile = open(exef,"w")
             exefile.writelines("#!%s\n"%sys.executable)
             exefile.write(zipfile.read())
             zipfile.close(); exefile.close()
             os.chmod(exef,0777)
コード例 #3
0
 def run(self):
    global using_bdist
    using_bdist = 1
    bdist_dumb.run(self)