Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 def finalize_options(self):
     sdist.finalize_options(self)
     self.extensions = self.distribution.ext_modules
Exemplo n.º 3
0
Arquivo: setup.py Projeto: kif/pyFAI
 def finalize_options(self):
     sdist.finalize_options(self)
     self.extensions = self.distribution.ext_modules
Exemplo n.º 4
0
 def finalize_options(self):
     sdist.finalize_options(self)
Exemplo n.º 5
0
 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)
Exemplo n.º 6
0
 def finalize_options(self):
     sdist.finalize_options(self)
     self.formats = ['zip']