2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-24 18:59:39 +01:00

Enable waf file builds with Jython

This commit is contained in:
Thomas Nagy 2015-10-06 22:06:19 +02:00
parent 5e7a7794c3
commit 43aef10ebf
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64

View File

@ -267,7 +267,11 @@ def create_waf(self, *k, **kw):
tar = tarfile.open('%s.tar.%s' % (mw, zipType), "w:%s" % zipType)
z = zipfile.ZipFile("zip/waflib.zip", "w", compression=zipfile.ZIP_DEFLATED)
for x in files:
tarinfo = tar.gettarinfo(x, x)
try:
tarinfo = tar.gettarinfo(x, x)
except NotImplementedError:
# jython 2.7.0 workaround
tarinfo = tarfile.TarInfo(x)
tarinfo.uid = tarinfo.gid = 0
tarinfo.uname = tarinfo.gname = 'root'
(code, size, cnt) = sfilter(x)
@ -397,8 +401,7 @@ def make_copy(inf, outf):
f.close()
def configure(conf):
conf.load('python')
conf.check_python_version((2,4))
conf.find_program('python')
def build(bld):
waf = bld.path.make_node('waf') # create the node right here