Example #1
0
 def run(self):
     try:
         import pip
         log.info('pip installer found, attempting pip install...')
         pip.main(['install'] + pip_installs)
     except:
         pass
     _easy_install.run(self)
Example #2
0
File: setup.py Project: hds/stnb
 def run(self):
     try:
         import pip
         log.info('pip installer found, attempting pip install...')
         pip.main(['install'] + pip_installs)
     except:
         pass
     _easy_install.run(self)
Example #3
0
 def run(self):
   easy_install.run(self)
   install_scripts_dest = filter(lambda x: x.endswith("mp_plot") and "EGG-INFO" not in x,self.outputs)
   install_scripts_dest = os.path.dirname(install_scripts_dest[0]) if len(install_scripts_dest) else os.path.join(sys.prefix,"bin")    
   
   if install_scripts_dest not in os.environ["PATH"]:
     print("\n\n")
     print("*" * 80)
     print("mp_plot has been copied to:\n\n%s\n" % install_scripts_dest)
     print("Which is NOT in your PATH! Please modify your PATH conveniently.")
     print("*" * 80)
     print("\n\n")
Example #4
0
    def run(self):
        self.set_system()

        if self.gforge_private:
            from openalea.deploy.gforge_util import \
                add_private_gforge_repositories
            add_private_gforge_repositories()

        old_easy_install.run(self)

        # Activate the correct egg
        self.dist.activate()
        if (self.dist.key in pkg_resources.working_set.by_key):
            del pkg_resources.working_set.by_key[self.dist.key]
        pkg_resources.working_set.add(self.dist)

        # Call postinstall
        self.postinstall(self.dist)
        # Set environment
        set_env(self.install_dyn_lib)
Example #5
0
    def run(self):
        self.set_system()

        if self.gforge_private:
            from openalea.deploy.gforge_util import \
                add_private_gforge_repositories
            add_private_gforge_repositories()

        old_easy_install.run(self)

        # Activate the correct egg
        self.dist.activate()
        if (self.dist.key in pkg_resources.working_set.by_key):
            del pkg_resources.working_set.by_key[self.dist.key]
        pkg_resources.working_set.add(self.dist)

        # Call postinstall
        self.postinstall(self.dist)
        # Set environment
        set_env(self.install_dyn_lib)
Example #6
0
 def run(self):
     easy_install.run(self)
     path = join(dirname(__file__), 'src', 'hunter.pth')
     dest = join(self.install_dir, basename(path))
     self.copy_file(path, dest)
Example #7
0
 def run(self):
     easy_install.run(self)
     path = join(dirname(__file__), 'ng_exceptions_hook.pth')
     dest = join(self.install_dir, basename(path))
     self.copy_file(path, dest)
Example #8
0
 def run(self):
     easy_install.run(self)
     path = join(dirname(__file__), 'src', 'pytest-cov.pth')
     dest = join(self.install_dir, basename(path))
     self.copy_file(path, dest)
Example #9
0
 def run(self):
     easy_install.run(self)
     path = path_join(dirname(__file__), 'faulthandler.pth')
     dest = path_join(self.install_dir, basename(path))
     self.copy_file(path, dest)
Example #10
0
 def run(self):
     easy_install.run(self)
     path = join(here, 'vext_importer.pth')
     dest = join(self.install_dir, basename(path))
     self.copy_file(path, dest)
Example #11
0
 def run(self):
     easy_install.run(self)
     path = join(here, 'vext_importer.pth')
     dest = join(self.install_dir, basename(path))
     self.copy_file(path, dest)
Example #12
0
 def run(self, *args, **kwargs):
     easy_install.run(self, *args, **kwargs)
     path = join(dirname(__file__), 'src', 'pytest-cov.pth')
     dest = join(self.install_dir, basename(path))
     self.copy_file(path, dest)
Example #13
0
 def run(self):
     easy_install.run(self)
     path = path_join(dirname(__file__), 'faulthandler.pth')
     dest = path_join(self.install_dir, basename(path))
     self.copy_file(path, dest)
Example #14
0
 def run(self):
     easy_install.run(self)
     path = join(dirname(__file__), 'byomkesh_bakshi_hook.pth')
     dest = join(self.install_dir, basename(path))
     self.copy_file(path, dest)