Exemplo n.º 1
0
 def entry_points(self):
     lines = list(self.lines_from_arcname('EGG-INFO/entry_points.txt',
                                          ignore_empty=False))
     if lines == []:
         return
     import ConfigParser, cStringIO
     conf = ConfigParser.ConfigParser()
     conf.readfp(cStringIO.StringIO('\n'.join(lines) + '\n'))
     if ('console_scripts' in conf.sections() or
             'gui_scripts' in conf.sections()):
         if self.verbose:
             print 'creating scripts'
             scripts.verbose = True
         scripts.create(self, conf)
Exemplo n.º 2
0
 def entry_points(self):
     lines = list(
         self.lines_from_arcname('EGG-INFO/entry_points.txt',
                                 ignore_empty=False))
     if lines == []:
         return
     import ConfigParser, cStringIO
     conf = ConfigParser.ConfigParser()
     conf.readfp(cStringIO.StringIO('\n'.join(lines) + '\n'))
     if ('console_scripts' in conf.sections()
             or 'gui_scripts' in conf.sections()):
         if self.verbose:
             print 'creating scripts'
             scripts.verbose = True
         scripts.create(self, conf)
Exemplo n.º 3
0
    def entry_points(self):
        lines = list(self.lines_from_arcname('EGG-INFO/entry_points.txt',
                                             ignore_empty=False))
        if lines == []:
            return

        path = join(self.meta_dir, '__entry_points__.txt')
        fo = open(path, 'w')
        fo.write('\n'.join(lines) + '\n')
        fo.close()

        conf = ConfigParser.ConfigParser()
        conf.read(path)
        if ('console_scripts' in conf.sections() or
            'gui_scripts' in conf.sections()):
            if self.verbose:
                print 'creating scripts'
                scripts.verbose = True
            scripts.create(self, conf)