资源简介
scons是一个Python写的自动化构建工具,从构建这个角度说,它跟GNU make是同一类的工具。它是一种改进,并跨平台的gnu make替代工具,其集成功能类似于autoconf/automake 。scons是一个更简便,更可靠,更高效的编译软件。
代码片段和文件信息
#!/usr/bin/env python
#
# scons-time - run SCons timings and collect statistics
#
# A script for running a configuration through SCons with a standard
# set of invocations to collect timing and memory statistics and to
# capture the results in a consistent set of output files for display
# and analysis.
#
#
# Copyright (c) 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 The SCons Foundation
#
# Permission is hereby granted free of charge to any person obtaining
# a copy of this software and associated documentation files (the
# “Software“) to deal in the Software without restriction including
# without limitation the rights to use copy modify merge publish
# distribute sublicense and/or sell copies of the Software and to
# permit persons to whom the Software is furnished to do so subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED “AS IS“ WITHOUT WARRANTY OF ANY
# KIND EXPRESS OR IMPLIED INCLUDING BUT NOT LIMITED TO THE
# WARRANTIES OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM DAMAGES OR OTHER LIABILITY WHETHER IN AN ACTION
# OF CONTRACT TORT OR OTHERWISE ARISING FROM OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
from __future__ import division
from __future__ import nested_scopes
__revision__ = “src/script/scons-time.py 5134 2010/08/16 23:02:40 bdeegan“
import getopt
import glob
import os
import re
import shutil
import sys
import tempfile
import time
try:
sorted
except NameError:
# Pre-2.4 Python has no sorted() function.
#
# The pre-2.4 Python list.sort() method does not support
# list.sort(key=) nor list.sort(reverse=) keyword arguments so
# we must implement the functionality of those keyword arguments
# by hand instead of passing them to list.sort().
def sorted(iterable cmp=None key=None reverse=False):
if key is not None:
result = [(key(x) x) for x in iterable]
else:
result = iterable[:]
if cmp is None:
# Pre-2.3 Python does not support list.sort(None).
result.sort()
else:
result.sort(cmp)
if key is not None:
result = [t1 for t0t1 in result]
if reverse:
result.reverse()
return result
if os.environ.get(‘SCONS_HORRIBLE_REGRESSION_TEST_HACK‘) is not None:
# We can‘t apply the ‘callable‘ fixer until the floor is 2.6 but the
# ‘-3‘ option to Python 2.6 and 2.7 generates almost ten thousand
# warnings. This hack allows us to run regression tests with the ‘-3‘
# option by replacing the callable() built-in function with a hack
# that performs the same function but doesn‘t generate the warning.
# Note that this hack i
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 6474 2010-08-16 23:10 scons-README
文件 1318 2010-08-16 23:10 scons-LICENSE
文件 6781 2010-08-16 23:02 scons.py
文件 16880 2010-08-16 23:02 sconsign.py
文件 50487 2010-08-16 23:02 scons-time.py
文件 442 2010-08-16 23:10 scons-local-2.0.1\scons-2.0.1.egg-info
文件 39297 2010-08-16 23:02 scons-local-2.0.1\SCons\Taskmaster.py
文件 12752 2010-08-16 23:02 scons-local-2.0.1\SCons\SConsign.py
文件 46857 2010-08-16 23:02 scons-local-2.0.1\SCons\Action.py
文件 16113 2010-08-16 23:02 scons-local-2.0.1\SCons\Job.py
文件 21440 2010-08-16 23:02 scons-local-2.0.1\SCons\Executor.py
文件 91318 2010-08-16 23:02 scons-local-2.0.1\SCons\Environment.py
文件 27708 2010-08-16 23:02 scons-local-2.0.1\SCons\Conftest.py
文件 7442 2010-08-16 23:02 scons-local-2.0.1\SCons\Errors.py
文件 6806 2010-08-16 23:02 scons-local-2.0.1\SCons\Warnings.py
文件 7472 2010-08-16 23:02 scons-local-2.0.1\SCons\dblite.py
文件 34762 2010-08-16 23:02 scons-local-2.0.1\SCons\Subst.py
文件 9642 2010-08-16 23:02 scons-local-2.0.1\SCons\Memoize.py
文件 8416 2010-08-16 23:02 scons-local-2.0.1\SCons\PathList.py
文件 39054 2010-08-16 23:02 scons-local-2.0.1\SCons\SConf.py
文件 6766 2010-08-16 23:02 scons-local-2.0.1\SCons\Debug.py
文件 48957 2010-08-16 23:02 scons-local-2.0.1\SCons\Util.py
文件 2402 2010-08-16 23:02 scons-local-2.0.1\SCons\exitfuncs.py
文件 19693 2010-08-16 23:02 scons-local-2.0.1\SCons\cpp.py
文件 2358 2010-08-16 23:02 scons-local-2.0.1\SCons\Sig.py
文件 16923 2010-08-16 23:02 scons-local-2.0.1\SCons\Defaults.py
文件 33976 2010-08-16 23:02 scons-local-2.0.1\SCons\Builder.py
文件 8002 2010-08-16 23:02 scons-local-2.0.1\SCons\CacheDir.py
文件 1623 2010-08-16 23:02 scons-local-2.0.1\SCons\__init__.py
文件 2884 2010-08-16 23:02 scons-local-2.0.1\SCons\Tool\rpcgen.py
文件 1764 2010-08-16 23:02 scons-local-2.0.1\SCons\Tool\default.py
............此处省略159个文件信息
- 上一篇:基于Tensorflow的人脸识别源码
- 下一篇:富文本使用案例
相关资源
- 富文本使用案例
- python数据分析:客户价值分析案例实
- 用Python 编写的一个Monkey脚本
- 卷积神经网络图像识别python代码
- Python标准库英文版
- python写一个商城网页服务器并且实现
- 可爱的python 思哲社区
- 图像分割Grabcut算法-GUI程序-python实现
- 黑马python入门教程飞机大战素材(图
- 基于selenium模拟天眼查登录并爬取企业
- Python3 廖雪峰教程pdf版
- pythoncookbook(第3版)高清中文完整版
- 中文情感分析python程序
- 从零基础开始用Python处理Excel数据.p
- 基于python的opencv行人检测带简单按钮
- Python Crash Course 原版PDF by Matthes
- Python Pocket Reference 5th 原版PDF by Lut
- Deep Learning with Python 原版PDF by Choll
- python requests官方中文文档 高级用法
- python实现游戏外星人入侵
- python建站django框架的简单学习代码
- wxPython使用教程
- 常用数据挖掘算法总结及Python实现 文
- geckodriver-v0.23.0-win64
- [强烈推荐]Deep Learning with Python - A Ha
- Python基础教程第3版中文版pdf清晰版,
- Python编程:从入门到实践高清版.zip
- PyWin32手册适配Python3.7最新版
- python编程简单笔试题
- 贝叶斯网络工具箱-Python
评论
共有 条评论