- Timestamp:
- Mar 14, 2015, 6:06:10 PM (10 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:
- 6d7acc8
- Parents:
- 5525507
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waf
r5525507 r904702d 1 1 #!/usr/bin/env python 2 2 # encoding: ISO8859-1 3 # Thomas Nagy, 2005-201 23 # Thomas Nagy, 2005-2015 4 4 5 5 """ … … 31 31 """ 32 32 33 import os, sys 33 import os, sys, inspect 34 34 35 VERSION="1.7.15" 36 REVISION="de1cb53b86321cda764be4b3c38c3d20" 35 VERSION="1.8.7" 36 REVISION="073060339ba56c09e143ed641610cbec" 37 GIT="x" 37 38 INSTALL='' 38 C1='#+' 39 C2='#&' 39 C1='#/' 40 C2='#-' 41 C3='#+' 40 42 cwd = os.getcwd() 41 43 join = os.path.join … … 54 56 sys.exit(1) 55 57 56 def unpack_wafdir(dir ):57 f = open(s ys.argv[0],'rb')58 def unpack_wafdir(dir, src): 59 f = open(src,'rb') 58 60 c = 'corrupt archive (%d)' 59 61 while 1: … … 66 68 break 67 69 if not txt: err(c % 3) 68 txt = txt[1:-1].replace(b(C1), b('\n')).replace(b(C2), b('\r')) 70 txt = txt[1:-1].replace(b(C1), b('\n')).replace(b(C2), b('\r')).replace(b(C3), b('\x00')) 69 71 70 72 import shutil, tarfile … … 72 74 except OSError: pass 73 75 try: 74 for x in ['Tools', 'extras']:76 for x in ('Tools', 'extras'): 75 77 os.makedirs(join(dir, 'waflib', x)) 76 78 except OSError: … … 101 103 t.close() 102 104 103 for x in ['Tools', 'extras']:105 for x in ('Tools', 'extras'): 104 106 os.chmod(join('waflib',x), 493) 105 107 … … 128 130 129 131 def find_lib(): 130 name = sys.argv[0]131 base = os.path.dirname(os.path.abspath(name))132 src = os.path.abspath(inspect.getfile(inspect.getmodule(err))) 133 base, name = os.path.split(src) 132 134 133 135 #devs use $WAFDIR … … 142 144 143 145 dirname = '%s-%s-%s' % (WAF, VERSION, REVISION) 144 for i in [INSTALL,'/usr','/usr/local','/opt']:146 for i in (INSTALL,'/usr','/usr/local','/opt'): 145 147 w = test(i + '/lib/' + dirname) 146 148 if w: return w … … 152 154 153 155 #unpack 154 unpack_wafdir(dir )156 unpack_wafdir(dir, src) 155 157 return dir 156 158
Note: See TracChangeset
for help on using the changeset viewer.