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


Python develop.run方法代码示例

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


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

示例1: run

# 需要导入模块: from setuptools.command.develop import develop [as 别名]
# 或者: from setuptools.command.develop.develop import run [as 别名]
def run(self):
        _clean.run(self)
        if os.path.exists('build'):
            shutil.rmtree('build')
        for dirpath, dirnames, filenames in os.walk('yatsm'):
            for filename in filenames:
                if any(filename.endswith(suffix) for suffix in
                       ('.c', '.so', '.pyd', '.pyc')):
                    os.unlink(os.path.join(dirpath, filename))
                    continue
                if (any(filename.endswith(suffix) for suffix in
                        ('.pkl', '.json')) and
                        os.path.basename(dirpath) == 'pickles'):
                    os.unlink(os.path.join(dirpath, filename))
            for dirname in dirnames:
                if dirname == '__pycache__':
                    shutil.rmtree(os.path.join(dirpath, dirname))


# Create pickles when building 
开发者ID:ceholden,项目名称:yatsm,代码行数:22,代码来源:setup.py

示例2: run

# 需要导入模块: from setuptools.command.develop import develop [as 别名]
# 或者: from setuptools.command.develop.develop import run [as 别名]
def run(self):
        from renku.core.commands.init import fetch_template, \
            read_template_manifest

        with TemporaryDirectory() as tempdir:
            # download and extract template data
            temppath = Path(tempdir)
            print('downloading Renku templates...')
            fetch_template(URL, REFERENCE, temppath)
            read_template_manifest(temppath, checkout=True)

            # copy templates
            current_path = Path.cwd()
            template_path = current_path / 'renku' / 'templates'
            if template_path.exists():
                shutil.rmtree(str(template_path))
            shutil.copytree(
                str(temppath),
                str(template_path),
                ignore=shutil.ignore_patterns('.git')
            ) 
开发者ID:SwissDataScienceCenter,项目名称:renku-python,代码行数:23,代码来源:setup.py

示例3: run

# 需要导入模块: from setuptools.command.develop import develop [as 别名]
# 或者: from setuptools.command.develop.develop import run [as 别名]
def run(self):
        try:
            print("Building custom models:")
            build_custom_models()
        except ImportError as e:
            print("Custom model compilation failed with: %s" % e)
        develop.run(self) 
开发者ID:pyviz-topics,项目名称:EarthSim,代码行数:9,代码来源:setup.py

示例4: run

# 需要导入模块: from setuptools.command.develop import develop [as 别名]
# 或者: from setuptools.command.develop.develop import run [as 别名]
def run(self):
        develop.run(self)
        if sys.platform == 'win32':
            for f in glob.glob(os.path.join('simnibs', 'lib', 'win', '*')):
                shutil.copy(
                    f,
                    os.path.join('simnibs', 'cython_code', os.path.basename(f)))
        if sys.platform == 'darwin':
            for f in glob.glob(os.path.join('simnibs', 'lib', 'osx', '*')):
                shutil.copy(
                    f,
                    os.path.join('simnibs', 'cython_code', os.path.basename(f))) 
开发者ID:simnibs,项目名称:simnibs,代码行数:14,代码来源:setup.py

示例5: run

# 需要导入模块: from setuptools.command.develop import develop [as 别名]
# 或者: from setuptools.command.develop.develop import run [as 别名]
def run(self):
    develop.run(self)
    install_dir = os.path.join(self.install_dir, 'nesmdb')
    _build_vgm_play('/tmp/build_vgmplay', install_dir) 
开发者ID:chrisdonahue,项目名称:nesmdb,代码行数:6,代码来源:setup.py

示例6: do_egg_install

# 需要导入模块: from setuptools.command.develop import develop [as 别名]
# 或者: from setuptools.command.develop.develop import run [as 别名]
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) 
开发者ID:google,项目名称:rekall,代码行数:15,代码来源:setup.py

示例7: run

# 需要导入模块: from setuptools.command.develop import develop [as 别名]
# 或者: from setuptools.command.develop.develop import run [as 别名]
def run(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", "develop"],
                                  cwd="rekall-core")

        _develop.run(self) 
开发者ID:google,项目名称:rekall,代码行数:13,代码来源:setup.py

示例8: run

# 需要导入模块: from setuptools.command.develop import develop [as 别名]
# 或者: from setuptools.command.develop.develop import run [as 别名]
def run(self):
            subprocess.check_call([sys.executable, build_protos_cmd, repo_root], env=os.environ.copy()) 
开发者ID:mars-project,项目名称:mars,代码行数:4,代码来源:setup.py

示例9: run

# 需要导入模块: from setuptools.command.develop import develop [as 别名]
# 或者: from setuptools.command.develop.develop import run [as 别名]
def run(self):
        print(self.install_dir)
        with open("quarkchain/tools/" + PTH) as infp:
            with open(self.target, "w") as outfp:
                outfp.write(infp.read())
        develop.run(self) 
开发者ID:QuarkChain,项目名称:pyquarkchain,代码行数:8,代码来源:setup.py

示例10: run

# 需要导入模块: from setuptools.command.develop import develop [as 别名]
# 或者: from setuptools.command.develop.develop import run [as 别名]
def run(self):
        if not self.dry_run:
            target_dir = os.path.join(self.build_lib, MODEL_TARGET_DIR)
            self.mkpath(target_dir)
            build_models(target_dir)

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

示例11: run

# 需要导入模块: from setuptools.command.develop import develop [as 别名]
# 或者: from setuptools.command.develop.develop import run [as 别名]
def run(self):
        command = ['pip', 'install', self.version, self.options]
        subprocess.check_call(command) 
开发者ID:hyperledger,项目名称:indy-plenum,代码行数:5,代码来源:setup.py

示例12: run

# 需要导入模块: from setuptools.command.develop import develop [as 别名]
# 或者: from setuptools.command.develop.develop import run [as 别名]
def run(self):
        _develop.run(self)
        self.execute(_hooks, (self.install_lib,), msg="Running develop preparation task") 
开发者ID:marvin-ai,项目名称:marvin-python-toolbox,代码行数:5,代码来源:setup.py

示例13: run

# 需要导入模块: from setuptools.command.develop import develop [as 别名]
# 或者: from setuptools.command.develop.develop import run [as 别名]
def run(self):
        subprocess.check_call(['pipenv', 'install', '--dev', '--deploy', '--system'])
        develop.run(self) 
开发者ID:pawelzny,项目名称:dotty_dict,代码行数:5,代码来源:setup.py

示例14: run

# 需要导入模块: from setuptools.command.develop import develop [as 别名]
# 或者: from setuptools.command.develop.develop import run [as 别名]
def run(self):
        import grpc_tools.command
        grpc_tools.command.build_package_protos(self.distribution.package_dir['']) 
开发者ID:icon-project,项目名称:loopchain,代码行数:5,代码来源:setup.py

示例15: run

# 需要导入模块: from setuptools.command.develop import develop [as 别名]
# 或者: from setuptools.command.develop.develop import run [as 别名]
def run(self):
        compileProtoBuf()
        develop.run(self) 
开发者ID:lanpa,项目名称:tensorboardX,代码行数:5,代码来源:setup.py


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