コード例 #1
0
ファイル: setup.py プロジェクト: ParaToolsInc/taucmdr
 def finalize_options(self):
     # Distuilts defines attributes in the initialize_options() method
     # pylint: disable=attribute-defined-outside-init
     SDistCommand.finalize_options(self)
     from taucmdr.cf.platforms import Architecture, OperatingSystem, HOST_ARCH, HOST_OS
     if self.all and (self.web or self.target_arch or self.target_os):
         print '--all must not be used with any other arguments'
         sys.exit(-1)
     elif self.web and (self.all or self.target_arch or self.target_os):
         print '--web must not be used with any other arguments'
         sys.exit(-1)
     else:
         try:
             self.target_arch = Architecture.find(self.target_arch or str(HOST_ARCH))
         except KeyError:
             print 'Invalid architecture: %s' % self.target_arch
             print 'Known architectures: %s' % Architecture.keys()
             sys.exit(-1)
         try:
             self.target_os = OperatingSystem.find(self.target_os or str(HOST_OS))
         except KeyError:
             print 'Invalid operating system: %s' % self.target_os
             print 'Known operating system: %s' % OperatingSystem.keys()
             sys.exit(-1)
コード例 #2
0
ファイル: setup.py プロジェクト: Jus80687/pyFAI
 def finalize_options(self):
     sdist.finalize_options(self)
     self.extensions = self.distribution.ext_modules
コード例 #3
0
ファイル: setup.py プロジェクト: kif/pyFAI
 def finalize_options(self):
     sdist.finalize_options(self)
     self.extensions = self.distribution.ext_modules
コード例 #4
0
 def finalize_options(self):
     sdist.finalize_options(self)
コード例 #5
0
ファイル: setup.py プロジェクト: VinayPrakashSingh/plotdevice
 def finalize_options(self):
     with open('MANIFEST.in','w') as f:
         tracked, _, _ = gosub('git ls-tree --full-tree --name-only -r HEAD')
         for line in tracked.splitlines()[1:]:
             f.write("include %s\n"%line)
     sdist.finalize_options(self)
コード例 #6
0
ファイル: zdist.py プロジェクト: cjw296/pacman
 def finalize_options(self):
     sdist.finalize_options(self)
     self.formats = ['zip']