Python setuptools.command.install.install.do_egg_install() Examples

The following are 10 code examples of setuptools.command.install.install.do_egg_install(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module setuptools.command.install.install , or try the search function .
Example #1
Source File: setup.py    From magnitude with MIT License 6 votes vote down vote up
def run(self):
        if not(download_and_install_wheel()):
            custom_compile(THIRD_PARTY, INTERNAL)
            install_req_wheels()
            open(BUILT_LOCAL, 'w+').close()
        print("Running install...")
        p = Process(target=install.run, args=(self,))
        p.start()
        p.join()
        print("Done running install")
        if not(download_and_install_wheel()):
            print("Running egg_install...")
            p = Process(target=install.do_egg_install, args=(self,))
            p.start()
            p.join()
            install_requirements()
            print("Done running egg_install")
        else:
            print("Skipping egg_install")
        copy_custom_compile() 
Example #2
Source File: setup.py    From supersqlite with MIT License 6 votes vote down vote up
def run(self):
        if not(download_and_install_wheel()):
            custom_compile(THIRD_PARTY, INTERNAL)
            install_req_wheels()
            open(BUILT_LOCAL, 'w+').close()
        print("Running install...")
        p = Process(target=install.run, args=(self,))
        p.start()
        p.join()
        print("Done running install")
        if not(download_and_install_wheel()):
            print("Running egg_install...")
            p = Process(target=install.do_egg_install, args=(self,))
            p.start()
            p.join()
            install_requirements()
            print("Done running egg_install")
        else:
            print("Skipping egg_install")
        copy_custom_compile() 
Example #3
Source File: setup.py    From p4-hlir with Apache License 2.0 6 votes vote down vote up
def run(self):
        # in this step we simply retrieve the installation path that we need to
        # append to the PYTHONPATH dynamically
        global install_lib
        global old_install
        assert(install_lib is None)
        # we use the platform-dependent install path computed by setuptools
        install_lib = os.path.abspath(self.install_lib)
        # if a root was specified we remove it from the install path
        if self.root is not None:
            assert(install_lib.startswith(self.root))
            install_lib = install_lib[len(self.root):]
        old_install = (self.old_and_unmanageable or self.single_version_externally_managed)
        # using install.run(self) causes setuptools to ignore install_requires
        # for a complete explanation, refer to
        # https://stackoverflow.com/questions/21915469/python-setuptools-install-requires-is-ignored-when-overriding-cmdclass
        # install.run(self)
        if old_install:
            install.run(self)
        else:
            install.do_egg_install(self) 
Example #4
Source File: setup.py    From dustmaps with GNU General Public License v2.0 5 votes vote down vote up
def run(self):
        if not self.large_data_dir is None:
            print('Large data directory is set to: {}'.format(self.large_data_dir))
            with open(os.path.expanduser('~/.dustmapsrc'), 'w') as f:
                json.dump({'data_dir': self.large_data_dir}, f, indent=2)

        # install.do_egg_install(self) # Due to bug in setuptools that causes old-style install
        install.run(self) 
Example #5
Source File: setup.py    From rekall with GNU General Public License v2.0 5 votes vote down vote up
def do_egg_install(self):
        path = os.path.abspath(
            os.path.join(os.path.dirname(__file__), "rekall-core", "setup.py"))

        if os.access(path, os.F_OK):
            print("Installing rekall-core from local directory.")

            subprocess.check_call([sys.executable, "setup.py", "install"],
                                  cwd="rekall-core")

        # Need to call this directly because _install.run does crazy stack
        # walking and falls back to compatibility mode.
        _install.do_egg_install(self) 
Example #6
Source File: setup.py    From jack with MIT License 5 votes vote down vote up
def run(self):
        _install.do_egg_install(self)
        spacy_download_en()
        _install.run(self) 
Example #7
Source File: setup.py    From emopt with GNU General Public License v3.0 5 votes vote down vote up
def run(self):
        home_dir = os.path.expanduser('~')
        deps_file = home_dir + '/.emopt_deps'
        if(os.path.exists(deps_file)):
            with open(deps_file, 'r') as fdeps:
                for line in fdeps:
                    toks = line.rstrip('\r\n').split('=')
                    os.environ[toks[0]] = toks[1]
        else:
            pass # install dependencies as needed
        subprocess.call('make')
        SetuptoolsInstall.do_egg_install(self) 
Example #8
Source File: setup.py    From gntp with MIT License 5 votes vote down vote up
def run(self):
        _install.do_egg_install(self)
        install_prerequisites()
        _install.run(self) 
Example #9
Source File: setup.py    From PythonMiniProbe with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def run(self):
        conf_avail = False
        if not os.getuid() == 0:
            print(Bcolor.RED + "You must run me as root user!" + Bcolor.END)
            print(Bcolor.RED + "Rerun me with sudo " + __file__ + Bcolor.END)
            sys.exit(2)
        _install.do_egg_install(self)
        print("")
        print(Bcolor.CYAN + "Welcome to the Miniprobe (Python) for PRTG installer" + Bcolor.END)
        if self.file_check(self.path):
            print("")
            probe_config_exists = "%s" % str(raw_input(Bcolor.YELLOW + "A config file was already found. "
                                                                       "Do you want to reconfigure [y/N]: " 
                                                       + Bcolor.END)).rstrip().lstrip()
            if probe_config_exists.lower() == "y":
                config_old = self.read_config(self.path)
                self.get_config(config_old)
            else:
                print("")
                uninstall = "%s" % str(raw_input(Bcolor.YELLOW + "Do you want to Uninstall or Restart the "
                                                                 "service [u/R]: " + Bcolor.END)).rstrip().lstrip()
                if uninstall.lower() == "u":
                    self.remove_config()
                    conf_avail = False
                else:
                    conf_avail = True
        else:
            conf_avail = self.get_config(self.config_init)
            if conf_avail:
                print(subprocess.call("update-rc.d prtgprobe defaults", shell=True))
                print(Bcolor.GREEN + "Starting Mini Probe" + Bcolor.END)
                print(subprocess.call("/etc/init.d/prtgprobe start", shell=True))
                print(Bcolor.GREEN + "Done. You now can start/stop the Mini Probe using '/etc/init.d/prtgprobe start' "
                                     "or '/etc/init.d/prtgprobe stop'" + Bcolor.END)
            else:
                print("Exiting!")
                sys.exit()
        pass 
Example #10
Source File: setup.py    From forseti-security with Apache License 2.0 5 votes vote down vote up
def run(self):
        build_forseti_protos()
        install.do_egg_install(self)