From 4dac0ea283f6e13bf77c05e30202b16fd09d0989 Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Sun, 24 Jan 2016 23:51:34 +0100 Subject: [PATCH] Do not include waflib.zip in 'waf dist' results --- wscript | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/wscript b/wscript index 1c882a85..7f43e4be 100644 --- a/wscript +++ b/wscript @@ -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' +