Changeset 1a31baf
- Timestamp:
- Mar 12, 2014, 2:02:47 AM (11 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- 46b00690
- Parents:
- db21ca4
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
waf
rdb21ca4 r1a31baf 33 33 import os, sys 34 34 35 VERSION="1.7.1 3"36 REVISION=" 5a064c2686fe54de4e11018d22148cfc"35 VERSION="1.7.15" 36 REVISION="de1cb53b86321cda764be4b3c38c3d20" 37 37 INSTALL='' 38 C1='# ('39 C2='# $'38 C1='#+' 39 C2='#&' 40 40 cwd = os.getcwd() 41 41 join = os.path.join -
waflib/Configure.py
rdb21ca4 r1a31baf 196 196 def post_recurse(self,node): 197 197 super(ConfigurationContext,self).post_recurse(node) 198 self.hash= hash((self.hash,node.read('rb')))198 self.hash=Utils.h_list((self.hash,node.read('rb'))) 199 199 self.files.append(node.abspath()) 200 200 def eval_rules(self,rules): -
waflib/Context.py
rdb21ca4 r1a31baf 6 6 from waflib import Utils,Errors,Logs 7 7 import waflib.Node 8 HEXVERSION=0x1070 d009 WAFVERSION="1.7.1 3"10 WAFREVISION=" daa91dba4b881d86bc25eec90a3745ebaeece835"8 HEXVERSION=0x1070f00 9 WAFVERSION="1.7.15" 10 WAFREVISION="f63ac9793de2d4eaae884e55d4ff70a761dcbab2" 11 11 ABI=98 12 12 DBFILE='.wafpickle-%s-%d-%d'%(sys.platform,sys.hexversion,ABI) … … 61 61 global run_dir 62 62 rd=run_dir 63 class node_class(waflib.Node.Node): 64 pass 65 self.node_class=node_class 63 self.node_class=type("Nod3",(waflib.Node.Node,),{}) 66 64 self.node_class.__module__="waflib.Node" 67 self.node_class.__name__="Nod3"68 65 self.node_class.ctx=self 69 66 self.root=self.node_class('',None) -
waflib/Scripting.py
rdb21ca4 r1a31baf 203 203 if e.errno!=errno.ENOENT: 204 204 Logs.warn('file %r cannot be removed'%f) 205 if f.startswith('.waf')and not Options.commands: 206 shutil.rmtree(f,ignore_errors=True) 205 if not Options.commands: 206 for x in'.waf-1. waf-1. .waf3-1. waf3-1.'.split(): 207 if f.startswith(x): 208 shutil.rmtree(f,ignore_errors=True) 207 209 class Dist(Context.Context): 208 210 '''creates an archive containing the project source code''' … … 363 365 h=0 364 366 for f in env['files']: 365 h= hash((h,Utils.readf(f,'rb')))367 h=Utils.h_list((h,Utils.readf(f,'rb'))) 366 368 do_config=h!=env.hash 367 369 if do_config: -
waflib/Task.py
rdb21ca4 r1a31baf 664 664 if prev_sig==self.signature(): 665 665 for x in self.outputs: 666 if not x.is_child_of(bld.bldnode): 667 x.sig=Utils.h_file(x.abspath()) 666 668 if not x.sig or bld.task_sigs[x.abspath()]!=self.uid(): 667 669 return RUN_ME 668 670 return SKIP_ME 671 except OSError: 672 pass 673 except IOError: 674 pass 669 675 except KeyError: 670 676 pass -
waflib/TaskGen.py
rdb21ca4 r1a31baf 323 323 return"%%(%s)s"%g(1) 324 324 return'' 325 code=re_m4.sub(repl,code) 325 global re_m4 326 code=getattr(self.generator,'re_m4',re_m4).sub(repl,code) 326 327 try: 327 328 d=self.generator.dct -
waflib/Tools/c_config.py
rdb21ca4 r1a31baf 163 163 for key,val in defi.items(): 164 164 lst.append('--define-variable=%s=%s'%(key,val)) 165 static=False 166 if'args'in kw: 167 args=Utils.to_list(kw['args']) 168 if'--static'in args or'--static-libs'in args: 169 static=True 170 lst+=args 171 lst.extend(Utils.to_list(kw['package'])) 165 172 if'variables'in kw: 166 173 env=kw.get('env',self.env) … … 174 181 kw['okmsg']='yes' 175 182 return 176 static=False177 if'args'in kw:178 args=Utils.to_list(kw['args'])179 if'--static'in args or'--static-libs'in args:180 static=True181 lst+=args182 lst.extend(Utils.to_list(kw['package']))183 183 ret=self.cmd_and_log(lst) 184 184 if not'okmsg'in kw: … … 328 328 if'define_name'in kw: 329 329 self.undefine(kw['define_name']) 330 assert'msg'in kw,'invalid parameters, read http://freehackers.org/~tnagy/wafbook/single.html#config_helpers_c' 330 if not'msg'in kw: 331 self.fatal('missing "msg" in conf.check(...)') 331 332 @conf 332 333 def post_check(self,*k,**kw): … … 359 360 for k in _vars: 360 361 lk=k.lower() 361 if k=='INCLUDES':lk='includes'362 if k=='DEFINES':lk='defines'363 362 if lk in kw: 364 363 val=kw[lk] 365 364 if isinstance(val,str): 366 365 val=val.rstrip(os.path.sep) 367 self.env.append_unique(k+'_'+kw['uselib_store'], val)366 self.env.append_unique(k+'_'+kw['uselib_store'],Utils.to_list(val)) 368 367 return is_success 369 368 @conf … … 672 671 try: 673 672 out,err=conf.cmd_and_log(cmd,output=0) 674 except Errors.WafError: 675 conf.fatal('Could not find suncc %r'%cmd) 673 except Errors.WafError ,e: 674 if not(hasattr(e,'returncode')and hasattr(e,'stdout')and hasattr(e,'stderr')): 675 conf.fatal('Could not find suncc %r'%cmd) 676 out=e.stdout 677 err=e.stderr 676 678 version=(out or err) 677 679 version=version.split('\n')[0] -
waflib/Tools/c_preproc.py
rdb21ca4 r1a31baf 247 247 break 248 248 elif v2==',': 249 if not one_param:raise PreprocError("empty param in funcall %s"% p)249 if not one_param:raise PreprocError("empty param in funcall %s"%v) 250 250 args.append(one_param) 251 251 one_param=[] … … 363 363 else: 364 364 (p,v)=t[0] 365 return(v,[[],t[1:]]) 365 if len(t)>1: 366 return(v,[[],t[1:]]) 367 else: 368 return(v,[[],[('T','')]]) 366 369 re_include=re.compile('^\s*(<(?P<a>.*)>|"(?P<b>.*)")') 367 370 def extract_include(txt,defs): -
waflib/Tools/fc_scan.py
rdb21ca4 r1a31baf 7 7 from waflib.TaskGen import feature,before_method,after_method,extension 8 8 from waflib.Configure import conf 9 INC_REGEX="""(?:^|['">]\s*;)\s* INCLUDE\s+(?:\w+_)?[<"'](.+?)(?=["'>])"""9 INC_REGEX="""(?:^|['">]\s*;)\s*(?:|#\s*)INCLUDE\s+(?:\w+_)?[<"'](.+?)(?=["'>])""" 10 10 USE_REGEX="""(?:^|;)\s*USE(?:\s+|(?:(?:\s*,\s*(?:NON_)?INTRINSIC)?\s*::))\s*(\w+)""" 11 11 MOD_REGEX="""(?:^|;)\s*MODULE(?!\s*PROCEDURE)(?:\s+|(?:(?:\s*,\s*(?:NON_)?INTRINSIC)?\s*::))\s*(\w+)""" -
waflib/Tools/nasm.py
rdb21ca4 r1a31baf 3 3 # WARNING! Do not edit! http://waf.googlecode.com/git/docs/wafbook/single.html#_obtaining_the_waf_file 4 4 5 import os 5 6 import waflib.Tools.asm 6 7 from waflib.TaskGen import feature … … 13 14 conf.env.ASLNK_TGT_F=['-o'] 14 15 conf.load('asm') 16 conf.env.ASMPATH_ST='-I%s'+os.sep -
waflib/Utils.py
rdb21ca4 r1a31baf 109 109 f.close() 110 110 return m.digest() 111 if hasattr(os,'O_NOINHERIT') :111 if hasattr(os,'O_NOINHERIT')and sys.hexversion<0x3040000: 112 112 def readf_win32(f,m='r',encoding='ISO8859-1'): 113 113 flags=os.O_NOINHERIT|os.O_RDONLY -
waflib/ansiterm.py
rdb21ca4 r1a31baf 7 7 if not(sys.stderr.isatty()and sys.stdout.isatty()): 8 8 raise ValueError('not a tty') 9 from ctypes import *9 from ctypes import Structure,windll,c_short,c_ushort,c_ulong,c_int,byref,POINTER,c_long,c_char 10 10 class COORD(Structure): 11 11 _fields_=[("X",c_short),("Y",c_short)] … … 16 16 class CONSOLE_CURSOR_INFO(Structure): 17 17 _fields_=[('dwSize',c_ulong),('bVisible',c_int)] 18 windll.kernel32.GetStdHandle.argtypes=[c_ulong] 19 windll.kernel32.GetStdHandle.restype=c_ulong 20 windll.kernel32.GetConsoleScreenBufferInfo.argtypes=[c_ulong,POINTER(CONSOLE_SCREEN_BUFFER_INFO)] 21 windll.kernel32.GetConsoleScreenBufferInfo.restype=c_long 22 windll.kernel32.SetConsoleTextAttribute.argtypes=[c_ulong,c_ushort] 23 windll.kernel32.SetConsoleTextAttribute.restype=c_long 24 windll.kernel32.FillConsoleOutputCharacterA.argtypes=[c_ulong,c_char,c_ulong,POINTER(COORD),POINTER(c_ulong)] 25 windll.kernel32.FillConsoleOutputCharacterA.restype=c_long 26 windll.kernel32.FillConsoleOutputAttribute.argtypes=[c_ulong,c_ushort,c_ulong,POINTER(COORD),POINTER(c_ulong)] 27 windll.kernel32.FillConsoleOutputAttribute.restype=c_long 28 windll.kernel32.SetConsoleCursorPosition.argtypes=[c_ulong,POINTER(COORD)] 29 windll.kernel32.SetConsoleCursorPosition.restype=c_long 30 windll.kernel32.SetConsoleCursorInfo.argtypes=[c_ulong,POINTER(CONSOLE_CURSOR_INFO)] 31 windll.kernel32.SetConsoleCursorInfo.restype=c_long 18 32 sbinfo=CONSOLE_SCREEN_BUFFER_INFO() 19 33 csinfo=CONSOLE_CURSOR_INFO() … … 60 74 line_start=sbinfo.CursorPosition 61 75 line_length=sbinfo.Size.X-sbinfo.CursorPosition.X 62 chars_written=c_ int()63 windll.kernel32.FillConsoleOutputCharacterA(self.hconsole,c_ wchar(' '),line_length,line_start,byref(chars_written))76 chars_written=c_ulong() 77 windll.kernel32.FillConsoleOutputCharacterA(self.hconsole,c_char(' '),line_length,line_start,byref(chars_written)) 64 78 windll.kernel32.FillConsoleOutputAttribute(self.hconsole,sbinfo.Attributes,line_length,line_start,byref(chars_written)) 65 79 def clear_screen(self,param): … … 76 90 clear_start=sbinfo.CursorPosition 77 91 clear_length=((sbinfo.Size.X-sbinfo.CursorPosition.X)+sbinfo.Size.X*(sbinfo.Size.Y-sbinfo.CursorPosition.Y)) 78 chars_written=c_ int()79 windll.kernel32.FillConsoleOutputCharacterA(self.hconsole,c_ wchar(' '),clear_length,clear_start,byref(chars_written))92 chars_written=c_ulong() 93 windll.kernel32.FillConsoleOutputCharacterA(self.hconsole,c_char(' '),clear_length,clear_start,byref(chars_written)) 80 94 windll.kernel32.FillConsoleOutputAttribute(self.hconsole,sbinfo.Attributes,clear_length,clear_start,byref(chars_written)) 81 95 def push_cursor(self,param): … … 128 142 else: 129 143 c=to_int(c,0) 130 if c in range(30,38):144 if 29<c<38: 131 145 attr=(attr&0xfff0)|self.rgb2bgr(c-30) 132 elif c in range(40,48):146 elif 39<c<48: 133 147 attr=(attr&0xff0f)|(self.rgb2bgr(c-40)<<4) 134 148 elif c==0:
Note: See TracChangeset
for help on using the changeset viewer.