Chapter 4. Packaging and redistributing the source code

Table of Contents

Quick tarball creation
Custom archives
Cleaning the project tree

Quick tarball creation

Creating a tarball of the project is as simple as running

$ waf dist
Your archive is ready -> cpp_test-0.0.1.tar.bz2
			

By default, the archive name uses the version and the project name found in the top-level wscript file

VERSION = '0.0.1'
APPNAME = 'cpp_test'
				

The default compression format is bzip2. It may be changed to gzip by using the following code:

import Scripting
Scripting.g_gz = 'gz'