当前位置: 首页>>代码示例>>Python>>正文


Python develop.run函数代码示例

本文整理汇总了Python中setuptools.command.develop.develop.run函数的典型用法代码示例。如果您正苦于以下问题:Python run函数的具体用法?Python run怎么用?Python run使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了run函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: run

 def run(self):
     clean_tables()
     build_tables()
     dirty = dirty_version()
     develop.run(self)
     if dirty:
         discard_changes()
开发者ID:kyokley,项目名称:xonsh,代码行数:7,代码来源:setup.py

示例2: run

        def run(self):
            if IS_WINDOWS_PLATFORM:
                if __saltstack_version__.info < (2015, 8):  # pylint: disable=undefined-variable
                    # Install M2Crypto first
                    self.distribution.salt_installing_m2crypto_windows = True
                    self.run_command('install-m2crypto-windows')
                    self.distribution.salt_installing_m2crypto_windows = None

                # Install PyCrypto
                self.distribution.salt_installing_pycrypto_windows = True
                self.run_command('install-pycrypto-windows')
                self.distribution.salt_installing_pycrypto_windows = None

                # Download the required DLLs
                self.distribution.salt_download_windows_dlls = True
                self.run_command('download-windows-dlls')
                self.distribution.salt_download_windows_dlls = None

            if self.write_salt_version is True:
                self.distribution.running_salt_install = True
                self.distribution.salt_version_hardcoded_path = SALT_VERSION_HARDCODED
                self.run_command('write_salt_version')

            if self.generate_salt_syspaths:
                self.distribution.salt_syspaths_hardcoded_path = SALT_SYSPATHS_HARDCODED
                self.run_command('generate_salt_syspaths')

            # Resume normal execution
            develop.run(self)
开发者ID:iquaba,项目名称:salt,代码行数:29,代码来源:setup.py

示例3: run

 def run(self, *args, **kwargs):
     print "MODIFIED RUN: %s" % self.__class__
     if self.minimal:
         self.distribution.install_requires = parse_requirements(["minimal-requirements.txt"])
         print "SELF.MINIMAL"
     print "install requires: %s" % (self.distribution.install_requires)
     develop_command.run(self, *args, **kwargs)
开发者ID:samstav,项目名称:pyp-sandbox,代码行数:7,代码来源:__init__.py

示例4: run

 def run(self):
     # versioneer:
     versions = versioneer.get_versions(verbose=True)
     self._versioneer_generated_versions = versions
     # unless we update this, the command will keep using the old version
     self.distribution.metadata.version = versions["version"]
     _cmd_develop.run(self)
开发者ID:leapcode,项目名称:soledad,代码行数:7,代码来源:setup.py

示例5: run

 def run(self):
     try:
         from enaml.core.parser import write_tables
         write_tables()
     except ImportError:
         pass
     develop.run(self)
开发者ID:nucleic,项目名称:enaml,代码行数:7,代码来源:setup.py

示例6: run

    def run(self):
        develop.run(self)

        if self.uninstall:
            package_path = find_package_path("pyaudio_wrapper")
            if package_path is not None:
                print("[Info] Detecting import hook in easy-install.pth")
                print("[Info] Clean import hook.")

                pth = os.path.join(os.path.dirname(easy_install.__file__), 'easy-install.pth')

                try:
                    pth_file = open(pth, "r")
                    lines = pth_file.readlines()
                    pth_file.close()
                    to_write = []
                    for line in lines:
                        if not 'pyaudio_wrapper' in line:
                            to_write.append(line)
                    pth_file = open(pth, "w")
                    pth_file.write(''.join(to_write))
                    pth_file.close()
                except Exception as e:
                    print(e)
                    print("[Error] Cannot clean the import hook.")
                    sys.exit(1)
开发者ID:dboyliao,项目名称:pyaudio_wrapper,代码行数:26,代码来源:setup.py

示例7: run

 def run(self):
     develop.run(self)
     try:
         self.run_command('build_docs')
     except:
         log.warn("Couldn't build documentation:\n%s" %
                  traceback.format_exception(*sys.exc_info()))
开发者ID:jvb,项目名称:Rested,代码行数:7,代码来源:setup.py

示例8: run

    def run(self):
        if not self.dry_run:
            target_dir = os.path.join(self.setup_path, MODEL_TARGET_DIR)
            self.mkpath(target_dir)
            build_stan_model(target_dir)

        develop.run(self)
开发者ID:HuXufeng,项目名称:prophet,代码行数:7,代码来源:setup.py

示例9: run

 def run(self):
     # add in requirements for testing only when using the develop command
     self.distribution.install_requires.extend([
         'mock',
         'nose',
     ])
     STDevelopCmd.run(self)
开发者ID:marquisthunder,项目名称:sqlalchemy-validation,代码行数:7,代码来源:setup.py

示例10: run

    def run(self):
        develop.run(self)

        # Install the dev requirements
        print('>>> Install dev requirements')
        self.spawn('pip install --upgrade --requirement requirements-dev.txt'.split(' '))
        print('<<< Instell dev requirements')
开发者ID:zeroxoneb,项目名称:arch-mirror-archive,代码行数:7,代码来源:setup.py

示例11: _run_develop

def _run_develop(self):
    """
    The definition of the "run" method for the CustomDevelopCommand metaclass.
    """
    # Get paths
    tethysapp_dir = get_tethysapp_directory()
    destination_dir = os.path.join(tethysapp_dir, self.app_package)

    # Notify user
    print('Creating Symbolic Link to App Package: {0} to {1}'.format(self.app_package_dir, destination_dir))

    # Create symbolic link
    try:
        os.symlink(self.app_package_dir, destination_dir)

    except:
        try:
            shutil.rmtree(destination_dir)
        except:
            os.remove(destination_dir)

        os.symlink(self.app_package_dir, destination_dir)

    # Install dependencies
    for dependency in self.dependencies:
        subprocess.call(['pip', 'install', dependency])

    # Run the original develop command
    develop.run(self)
开发者ID:astraiophos,项目名称:tethys,代码行数:29,代码来源:app_installation.py

示例12: run

 def run(self):
     if not skip_npm:
         if not which('node'):
             log.error('Please install nodejs and npm before continuing installation. nodejs may be installed using conda or directly from the nodejs website.')
             return
         run(npm, cwd=HERE)
     develop.run(self)
开发者ID:groutr,项目名称:jupyterlab,代码行数:7,代码来源:setup.py

示例13: run

 def run(self):
     clean_tables()
     build_tables()
     dirty = dirty_version()
     develop.run(self)
     if dirty:
         restore_version()
开发者ID:BlaXpirit,项目名称:xonsh,代码行数:7,代码来源:setup.py

示例14: run

 def run(self):
     log.debug('_develop run')
     develop.run(self)
     # move lib files into gippy directory
     [shutil.move(f, 'gippy/') for f in glob.glob('*.so')]
     if sysconfig.get_config_var('SOABI') is not None:
         # rename libgip if Python 3.2+
         os.rename(gip_module._file_name, 'gippy/libgip.so')
开发者ID:gipit,项目名称:gippy,代码行数:8,代码来源:setup.py

示例15: run

    def run(self):
        """
        Execute command pip for development requirements.
        """

        assert os.getenv('VIRTUAL_ENV'), 'You should be in a virtualenv!'
        develop.run(self)
        self.spawn(('pip', 'install', '--upgrade', '--requirement', 'requirements-dev.txt'))
开发者ID:gschwim,项目名称:elysian,代码行数:8,代码来源:setup.py


注:本文中的setuptools.command.develop.develop.run函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。