資源簡介
scons是一個Python寫的自動化構(gòu)建工具,從構(gòu)建這個角度說,它跟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的人臉識別源碼
- 下一篇:富文本使用案例
評論
共有 條評論