def install(self, extra_info=None): if not isdir(self.meta_dir): os.makedirs(self.meta_dir) self.z = zipfile.ZipFile(self.path) self.arcnames = self.z.namelist() self.extract() if on_win: scripts.create_proxies(self) else: import links import object_code if self.verbose: links.verbose = object_code.verbose = True links.create(self) object_code.fix_files(self) self.entry_points() if ('EGG-INFO/spec/depend' in self.arcnames or 'EGG-INFO/info.json' in self.arcnames): import eggmeta eggmeta.create_info(self, extra_info) self.z.close() scripts.fix_scripts(self) self.install_app() self.write_meta() self.run('post_egginst.py')
def install(self): if not isdir(self.meta_dir): os.makedirs(self.meta_dir) self.z = zipfile.ZipFile(self.fpath) self.arcnames = self.z.namelist() self.extract() if on_win: scripts.create_proxies(self) else: import links import object_code if self.verbose: links.verbose = object_code.verbose = True links.create(self) object_code.fix_files(self) self.entry_points() self.z.close() scripts.fix_scripts(self) self.run('post_egginst.py') self.install_app() self.write_meta() if self.hook: import registry registry.create_file(self)
def install(self, extra_info=None): if not isdir(self.meta_dir): os.makedirs(self.meta_dir) self.z = zipfile.ZipFile(self.path) self.arcnames = self.z.namelist() self.extract() if on_win: scripts.create_proxies(self) else: import links import object_code if self.verbose: links.verbose = object_code.verbose = True links.create(self) object_code.fix_files(self) if not self.hook: self.entry_points() if ('EGG-INFO/spec/depend' in self.arcnames or 'EGG-INFO/info.json' in self.arcnames): import eggmeta info = eggmeta.create_info(self, extra_info) else: info = {} self.z.close() if not self.hook: scripts.fix_scripts(self) self.install_app() self.write_meta() if self.hook: import registry registry.create_file(self) if info.get('app'): import app_entry app_entry.create_entry(self, info) self.run('post_egginst.py')
def install(self, extra_info=None): if not isdir(self.meta_dir): os.makedirs(self.meta_dir) self.z = zipfile.ZipFile(self.path) self.arcnames = self.z.namelist() self.extract() if on_win: scripts.create_proxies(self) else: import links import object_code if self.verbose: links.verbose = object_code.verbose = True links.create(self) object_code.fix_files(self) if not self.hook: self.entry_points() if 'EGG-INFO/spec/depend' in self.arcnames: import eggmeta eggmeta.create_info(self, extra_info) self.z.close() if not self.hook: scripts.fix_scripts(self) self.install_app() self.run('post_egginst.py') self.write_meta() if self.hook: import registry registry.create_file(self) if 'EGG-INFO/spec/app.json' in self.arcnames: import app_entry app_entry.create_entry(self) getLogger('progress.stop').info(None)