waf 

Send to Kindle
home » snippets » waf



Notes

dist command

Overriding the default dist command

def dist(ctx):
    # The archive name may be given directly instead of computing from APPNAME and VERSION
    ctx.base_name = 'foo_2.0'

    # The default compression format is tar.bz2. Other valid formats are zip and tar.gz
    ctx.algo      = 'zip'

    # Exclude patterns passed to give to ctx.path.ant_glob() which is used to find the files
    ctx.excl      = ' **/.waf-1* **/*~ **/*.pyc **/*.swp **/.lock-w*'

    # The files to add to the archive may be given as Waf node objects (excl is therefore ignored)
    ctx.files     = ctx.path.ant_glob('**/wscript')