2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-22 01:46:15 +01:00

Do not include waflib.zip in 'waf dist' results

This commit is contained in:
Thomas Nagy 2016-01-24 23:51:34 +01:00
parent a8896c57a5
commit 4dac0ea283
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64

14
wscript
View File

@ -26,7 +26,7 @@ import tokenize
import os, sys, re, io, optparse
from waflib import Utils, Options, Logs
from waflib import Utils, Options, Logs, Scripting
from hashlib import md5
from waflib import Configure
@ -404,14 +404,6 @@ def create_waf(self, *k, **kw):
os.chmod('waf', Utils.O755)
os.remove('%s.tar.%s' % (mw, zipType))
def make_copy(inf, outf):
(a, b, cnt) = sfilter(inf)
f = open(outf, "wb")
try:
f.write(cnt)
finally:
f.close()
def configure(conf):
conf.load('python')
@ -419,3 +411,7 @@ def build(bld):
waf = bld.path.make_node('waf') # create the node right here
bld(name='create_waf', rule=create_waf, target=waf, always=True, color='PINK', update_outputs=True)
class Dist(Scripting.Dist):
def get_excl(self):
return super(self.__class__, self).get_excl() + ' **/waflib.zip'