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


Python Builder._clean方法代码示例

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


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

示例1: _clean

# 需要导入模块: from builder import Builder [as 别名]
# 或者: from builder.Builder import _clean [as 别名]
 def _clean(self):
     # Cleaning in Tools is done explicitly in rbuild script
     # and do not want it run a second time and complaining.
     if not 'Tools' in os.getcwd(): # i.e. in 3rdParty and Code
         if os.path.exists("setup.py"):
             utils.run("%s setup.py clean" % self._pycmd)
     Builder._clean(self)
开发者ID:ATNF,项目名称:askapsdp,代码行数:9,代码来源:setuptools.py

示例2: _clean

# 需要导入模块: from builder import Builder [as 别名]
# 或者: from builder.Builder import _clean [as 别名]
 def _clean(self):
     if os.path.exists(self._package):
         curdir = os.path.abspath(os.curdir)
         # Enter the untarred package directory
         os.chdir(self._package)
         if os.path.exists('Makefile'):
             utils.run("make clean")
         os.chdir(curdir)
     # Delete the reminder of the directories
     Builder._clean(self)
开发者ID:ATNF,项目名称:askapsdp,代码行数:12,代码来源:qt.py

示例3: _clean

# 需要导入模块: from builder import Builder [as 别名]
# 或者: from builder.Builder import _clean [as 别名]
    def _clean(self):
        if utils.in_code_tree() and os.path.exists('setup.py'):
            utils.run("python setup.py clean")

        # Bug #2803
        # An ASKAP/EPICS application (pkgname == '.') usually has a configure 
        # directory in the root directory
        # as opposed to EPICS base and some support modules where the tarball 
        # gets expanded in the pkgname directory.
        # This feature affects the way the package gets cleaned in order to 
        # support idempotent cleaning command.
        # In case of ASKAP/EPICS applications, we need to check whether EPICS 
        # base configure directory exists, otherwise
        # we cannot execute 'make clean' command. If epics base configure 
        # directory exists, a RELEASE.<architecture> file
        # must exist in the configure directory in order to locate epics base 
        # configure directory for the make command
        # to work correctly.
        if self._package == '.':
            if self._epicsbase_configure_exists():
                # RELEASE.<arch> must exists in order to run make clean. 
                # This prevents an error when running clean when the package 
                # has already been cleaned.
                self._create_releasefile()
                if not os.path.exists(self._deps_file):
                    open(self._deps_file, 'w').write("")
                shutil.copy(self._releasefile, 
                            os.path.join(self._package, "configure"))
                if self._oldreleasefile is not None:
                    shutil.copy(self._releasefile, 
                                os.path.join(self._package, 
                                             "configure", self._oldreleasefile))
                curdir = os.path.abspath(os.curdir)
                # Enter the untarred package directory
                os.chdir(self._package)
                utils.run("make clean uninstall")
                os.chdir(curdir)
            else:
                utils.q_print("WARNING: EPICS base configure directory does not ""exists (required by 'make clean'). Some temporary files inside the package will not be removed. Build EPICS base and re-run clean target or delete temporary files manually.")
        # Execute base class method, which removes install directory and 
        # additional clean targets
        Builder._clean(self)
开发者ID:ATNF,项目名称:askapsdp,代码行数:44,代码来源:epics.py

示例4: _clean

# 需要导入模块: from builder import Builder [as 别名]
# 或者: from builder.Builder import _clean [as 别名]
 def _clean(self):
     if utils.in_code_tree():
         utils.run("%s %s clean" % (self._icom, self._opts))
     Builder._clean(self)
开发者ID:ATNF,项目名称:askapsdp,代码行数:6,代码来源:ant.py

示例5: _clean

# 需要导入模块: from builder import Builder [as 别名]
# 或者: from builder.Builder import _clean [as 别名]
 def _clean(self):
     Builder._clean(self)
开发者ID:ATNF,项目名称:askapsdp,代码行数:4,代码来源:adbe.py


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