How to use the setuptools.command.install.install.run function in setuptools

To help you get started, we’ve selected a few setuptools examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github zhanghang1989 / PyTorch-Encoding / setup.py View on Github external
def run(self):
        create_version_file()
        setuptools.command.install.install.run(self)
        #subprocess.check_call("python tests/unit_test.py".split())
github exhuma / mypi / setup.py View on Github external
def run(self):
        install.run(self)
        # TODO: ask the user for WSGI and DB settings
        pass
github Jelomite / horrible-downloader / setup.py View on Github external
def run(self):
        # check if webtorrent is installed
        if subprocess.call(["webtorrent", "-v"], shell=True):
            subprocess.call("npm install webtorrent-cli -g", shell=True)
        install.run(self)
github soodoku / get-weather-data / setup.py View on Github external
def run(self):
        print("TODO: PostInstallCommand")
        install.run(self)
github tianocore / edk2-pytool-library / setup.py View on Github external
def run(self):
        install.run(self)
        _DownloadVsWhere()
github gemtools / gemtools / python / setup.py View on Github external
def run(self):
        _install.run(self)
        bins=[x for x in os.listdir("gem/gembinaries")]
        for file in self.get_outputs():
            if os.path.basename(file) in bins:
                print "Making %s executable" % file
                os.chmod(file, 0755)
github r-xue / ads2bibdesk / setup.py View on Github external
def run(self):

        install.run(self)

        service = self.service  # will be 1 or None
        if service is not None:

            cl_path = self.install_scripts
            cl_path = cl_path+'/ads2bibdesk'

            service_wflow = rel_path(os.path.join("service", "Add to BibDesk.workflow",
                                                  "Contents", "document.wflow"))
            app_wflow = rel_path(os.path.join("service", "Add to BibDesk.app",
                                              "Contents", "document.wflow"))

            for idx, workflow in enumerate([service_wflow, app_wflow]):
                with open(workflow, 'rb') as fp:
                    pl = plistlib.load(fp)
                    pl['actions'][idx]['action']['ActionParameters']['COMMAND_STRING'] = cl_path+' "$1"'
github orppra / ropa / setup.py View on Github external
def run(self):
        subprocess.call('scripts/post_install.sh')
        install.run(self)
github hyperledger-archives / indy-common / setup.py View on Github external
def run(self):
        install.run(self)
        post_install()
github Stunkymonkey / nautilus-open-any-terminal / setup.py View on Github external
def run(self):
        _install.run(self)

        # Do what distutils install_data used to do... *sigh*
        # Despite what the setuptools docs say, the omission of this
        # in setuptools is a bug, not a feature.
        print("== Installing Nautilus Python extension...")
        src_file = "nautilus_open_any_terminal/open_any_terminal_extension.py"
        dst_dir = os.path.join(self.install_data, "share/nautilus-python/extensions")
        self.mkpath(dst_dir)
        dst_file = os.path.join(dst_dir, os.path.basename(src_file))
        self.copy_file(src_file, dst_file)
        print("== Done!")

        print("== Installing GSettings Schema")
        src_file = "./nautilus_open_any_terminal/schemas/com.github.stunkymonkey.nautilus-open-any-terminal.gschema.xml"
        dst_dir = os.path.join(self.install_data, "share/glib-2.0/schemas")
        self.mkpath(dst_dir)