• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python develop.run函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: run

    def run(self):
        level = logging.getLevelName("INFO")
        logging.basicConfig(level=level,
            format='%(levelname)-8s : %(message)s')

        _develop.run(self)
        install_requirements(self.user)
        _post_install(self)
开发者ID:dieterich-lab,项目名称:rp-bp,代码行数:8,代码来源:setup.py


示例17: run

    def run(self):
        """ Overwriting the existing command.
        """
        os.chdir('respy')

        os.system('./waf distclean; ./waf configure build')

        os.chdir('../')

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


示例18: run

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


示例19: run

        def run(self):

            subprocess.check_call(['make', '-C', 'external/samtools'])
            subprocess.check_call(['./configure'], cwd='external/samtools/htslib-1.2.1')
            subprocess.check_call(['make'], cwd='external/samtools/htslib-1.2.1')
            
            develop.run(self)
            import shutil
            shutil.copy2('external/samtools/samtools', 'transvar/')
            shutil.copy2('external/samtools/htslib-1.2.1/tabix', 'transvar/')
            shutil.copy2('external/samtools/htslib-1.2.1/bgzip', 'transvar/')
开发者ID:humanlongevity,项目名称:transvar,代码行数:11,代码来源:setup.py


示例20: run

 def run(self):
     _develop.run(self)
     install_nbextension(
         extension_dir,
         symlink=True,
         overwrite=True,
         user=False,
         sys_prefix=True,  # to install it inside virtualenv
         destination="robomission")
     cm = ConfigManager()
     cm.update('notebook', {"load_extensions": {"robomission/index": True } })
开发者ID:adaptive-learning,项目名称:robomission,代码行数:11,代码来源:setup.py



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python easy_install.easy_install函数代码示例发布时间:2022-05-27
下一篇:
Python develop.install_for_development函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap