mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-06 17:13:49 +01:00
Update lilv, lv2, serd, sord, sratom, and add suil.
This commit is contained in:
@@ -164,12 +164,12 @@ def distclean_dir(dirname):
|
||||
if _can_distclean(f):
|
||||
fname=root+os.sep+f
|
||||
try:
|
||||
os.unlink(fname)
|
||||
os.remove(fname)
|
||||
except OSError:
|
||||
Logs.warn('Could not remove %r'%fname)
|
||||
for x in[Context.DBFILE,'config.log']:
|
||||
try:
|
||||
os.unlink(x)
|
||||
os.remove(x)
|
||||
except OSError:
|
||||
pass
|
||||
try:
|
||||
@@ -193,17 +193,20 @@ def distclean(ctx):
|
||||
pass
|
||||
except OSError ,e:
|
||||
if e.errno!=errno.ENOENT:
|
||||
Logs.warn('project %r cannot be removed'%proj[Context.OUT])
|
||||
Logs.warn('Could not remove %r'%proj['out_dir'])
|
||||
else:
|
||||
distclean_dir(proj['out_dir'])
|
||||
for k in(proj['out_dir'],proj['top_dir'],proj['run_dir']):
|
||||
p=os.path.join(k,Options.lockfile)
|
||||
try:
|
||||
os.remove(os.path.join(k,Options.lockfile))
|
||||
os.remove(p)
|
||||
except OSError ,e:
|
||||
if e.errno!=errno.ENOENT:
|
||||
Logs.warn('file %r cannot be removed'%f)
|
||||
if f.startswith('.waf')and not Options.commands:
|
||||
shutil.rmtree(f,ignore_errors=True)
|
||||
Logs.warn('Could not remove %r'%p)
|
||||
if not Options.commands:
|
||||
for x in'.waf-1. waf-1. .waf3-1. waf3-1.'.split():
|
||||
if f.startswith(x):
|
||||
shutil.rmtree(f,ignore_errors=True)
|
||||
class Dist(Context.Context):
|
||||
'''creates an archive containing the project source code'''
|
||||
cmd='dist'
|
||||
@@ -325,7 +328,7 @@ class DistCheck(Dist):
|
||||
else:
|
||||
cfg=[x for x in sys.argv if x.startswith('-')]
|
||||
instdir=tempfile.mkdtemp('.inst',self.get_base_name())
|
||||
ret=Utils.subprocess.Popen([sys.argv[0],'configure','install','uninstall','--destdir='+instdir]+cfg,cwd=self.get_base_name()).wait()
|
||||
ret=Utils.subprocess.Popen([sys.executable,sys.argv[0],'configure','install','uninstall','--destdir='+instdir]+cfg,cwd=self.get_base_name()).wait()
|
||||
if ret:
|
||||
raise Errors.WafError('distcheck failed with code %i'%ret)
|
||||
if os.path.exists(instdir):
|
||||
@@ -362,7 +365,7 @@ def autoconfigure(execute_method):
|
||||
else:
|
||||
h=0
|
||||
for f in env['files']:
|
||||
h=hash((h,Utils.readf(f,'rb')))
|
||||
h=Utils.h_list((h,Utils.readf(f,'rb')))
|
||||
do_config=h!=env.hash
|
||||
if do_config:
|
||||
Options.commands.insert(0,self.cmd)
|
||||
|
||||
Reference in New Issue
Block a user