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

Python install_lib.run函数代码示例

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

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



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

示例1: run

    def run(self):
        """
        Need to find any pre-existing vext contained in dependent packages
        and install them

        example:

        you create a setup.py with install_requires["vext.gi"]:

        - vext.gi gets installed using bdist_egg
        - vext itself is now called with bdist_egg and we end up here

        Vext now needs to find and install .vext files in vext.gi
        [or any other files that depend on vext]

        :return:
        """
        print("vext InstallLib")

        # Find packages that depend on vext and check for .vext files...

        vext_files = self.find_vext_files()
        print("vext files: ", vext_files)
        self.manually_install_vext(vext_files)
        self.enable_vext()
        install_lib.run(self)
开发者ID:andreubotella,项目名称:vext,代码行数:26,代码来源:setup.py


示例2: run

 def run(self):
     global uwsgi_compiled
     if not uwsgi_compiled:
         conf = uc.uConf(get_profile())
         patch_bin_path(self, conf)
         uc.build_uwsgi(conf)
         uwsgi_compiled = True
     install_lib.run(self)
开发者ID:comel,项目名称:uwsgi,代码行数:8,代码来源:setup.py


示例3: run

    def run(self):
        install_lib.run(self)

        # Make executables executable
        for path in self.get_outputs():
            for exe_path in EXECUTABLES_PATHS:
                if path.endswith(exe_path):
                    mode = ((os.stat(path).st_mode) | 0o555) & 0o7777
                    log.info('changing mode of %s to %o', path, mode)
                    os.chmod(path, mode)
开发者ID:dbosst,项目名称:ranger,代码行数:10,代码来源:setup.py


示例4: run

 def run(self):
     install_lib.run(self)
     # prepare filesystem
     main_dir_name = 'themis'
     target_dir = '%s/%s' % (self.install_dir, main_dir_name)
     # delete existing directory
     subprocess.check_output('rm -r %s' % (main_dir_name), shell=True)
     # create symlink
     subprocess.check_output('ln -s %s %s' % (target_dir, main_dir_name), shell=True)
     # install npm modules
     subprocess.check_output('make npm', shell=True)
开发者ID:atlassian,项目名称:themis,代码行数:11,代码来源:setup.py


示例5: run

    def run(self):

        install_lib.run(self)

        cwd = os.path.join( os.getcwdu(), self.install_dir )
        cwd = os.path.join( cwd, PACKAGE_NAME )

        print( 'Running mkdeps in ' + cwd )

        check_call( [os.path.join( cwd, 'mkdeps' )], cwd=cwd )
        check_call( [os.path.join( cwd, 'mkdeps' ), 'clean'], cwd=cwd )
开发者ID:alexforster,项目名称:bgpdumpy,代码行数:11,代码来源:setup.py


示例6: run

    def run(self):
        """ checks for a valid pycrypto version before running the install
        process, prints a warning if none was found """
        try:
            import Crypto
            if Crypto.version_info < (2,1):
                print('\n**** WARNING: ****\nYou seem to have pyCrypto < 2.1 '
                        'installed. python-potr will need at least pyCrypto 2.1 to run\n\n')
        except:
            print('\n**** WARNING: ****\nYou don\'t seem to have pyCrypto '
                    'installed. python-potr will need at least pyCrypto 2.1 to run\n\n')

        install_lib.run(self)
开发者ID:guerrerocarlos,项目名称:pure-python-otr,代码行数:13,代码来源:setup.py


示例7: run

 def run(self):
     self.l10n_run()
     # When bdist_egg is called on distribute 0.6.29 and later, the
     # egg file includes no *.mo and *.js files which are generated
     # in l10n_run() method.
     # We remove build_py.data_files property to re-compute in order
     # to avoid the issue (#11640).
     build_py = self.get_finalized_command('build_py')
     if 'data_files' in build_py.__dict__ and \
        not any(any(name.endswith('.mo') for name in filenames)
                for pkg, src_dir, build_dir, filenames
                in build_py.data_files):
         del build_py.__dict__['data_files']
     _install_lib.run(self)
开发者ID:pkdevbox,项目名称:trac,代码行数:14,代码来源:dist.py


示例8: run

	def run(self):
		install_lib.run(self)

		if self.dry_run or len(self.distribution.motherapps) == 0:
			return

		inst = self.get_finalized_command('install')

		for app in self.distribution.motherapps:
			self._copy_tree(
				os.path.join(*app.split('.')), 
				os.path.join(inst.install_apps, self.dest)
			)

		self.byte_compile(self._pyfiles)
开发者ID:gbour,项目名称:Mother,代码行数:15,代码来源:setup.py


示例9: run

    def run(self):
        if INSTALLER == 'pip':
            script_tmp_dir = self.build_dir
        else:  # setuptools
            raise DistutilsSetupError("'setuptools' is not supported. Please use 'pip' instead.")

        def subst_file(_file, vars_2_subst):
            input_file = os.path.join(script_tmp_dir, _file)
            output_file = input_file + '.tmp'
            subst_vars(input_file, output_file, vars_2_subst)
            os.unlink(input_file)
            self.move_file(output_file, input_file)

        inst = self.distribution.command_options.get('install', {})
        _file = os.path.join('integron_finder', '__init__.py')
        subst_file(_file, {'INTEGRONDATA': os.path.join(get_install_data_dir(inst), 'integron_finder')})

        _install_lib.run(self)
开发者ID:gem-pasteur,项目名称:Integron_Finder,代码行数:18,代码来源:setup.py


示例10: run

 def run(self):
     if babel is not None:
         self.run_command('compile_catalog')
     install_lib.run(self)
开发者ID:xi,项目名称:cplay-ng-backup,代码行数:4,代码来源:setup.py


示例11: run

 def run(self):
     self.l10n_run()
     _install_lib.run(self)
开发者ID:Stackato-Apps,项目名称:bloodhound,代码行数:3,代码来源:dist.py


示例12: run

 def run(self):
     install_lib.run(self)
     path = join(dirname(__file__), 'src', 'pytest-cov.pth')
     dest = join(self.install_dir, basename(path))
     self.copy_file(path, dest)
     self.outputs = [dest]
开发者ID:Eksmo,项目名称:pytest-cov,代码行数:6,代码来源:setup.py


示例13: run

 def run(self):
     InstallLibCommand.run(self)
开发者ID:ParaToolsInc,项目名称:taucmdr,代码行数:2,代码来源:setup.py


示例14: run

 def run(self):
     self.run_command('compile_catalog')
     install_lib.run(self)
开发者ID:hhru,项目名称:lucid-python-cerberus,代码行数:3,代码来源:distribution_helpers.py


示例15: run

 def run(self):
     _install_lib.run(self)
     print('========================================================')
     print(' Run "update-seals -f" after install to generate seals! ')
     print('========================================================')
开发者ID:freelawproject,项目名称:seal-rookery,代码行数:5,代码来源:setup.py


示例16: run

 def run(self):
     _write_jpy_config(install_dir=self.install_dir)
     install_lib.run(self)
开发者ID:bcdev,项目名称:jpy,代码行数:3,代码来源:setup.py


示例17: run

 def run(self):
     if not os.path.exists(LIB_TARGET):
         os.system('make')
     install_lib.run(self)
开发者ID:Alphadelta14,项目名称:XCSV,代码行数:4,代码来源:setup.py


示例18: run

 def run(self):
     InstallLib.run(self)
     _maintain_symlinks('library', self.install_dir)
开发者ID:ernstp,项目名称:ansible,代码行数:3,代码来源:setup.py


示例19: run

 def run(self):
     self.run_command('compile_translations')
     _install_lib.run(self)
开发者ID:Azelphur,项目名称:DjangoBB,代码行数:3,代码来源:setup.py


示例20: run

 def run(self):
     """Compile catalog before running installation command."""
     install_lib.run(self)
     self.run_command('compile_catalog')
开发者ID:k3njiy,项目名称:invenio,代码行数:4,代码来源:setup.py



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
Python sdist.sdist函数代码示例发布时间:2022-05-27
下一篇:
Python install.run函数代码示例发布时间: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