My favorites | Sign in
Logo
waf
Project hosting will be READ-ONLY Wednesday, 7AM PST due to brief network maintenance
                
Search
for
Updated Jun 03, 2009 by tenoften
Labels: User-Documentation
InstallingWaf  
Details on how Waf is installed

Generating the waf script

The waf is created from waf-light using the following command:

./waf-light --make-waf --strip

or optionally if you want comments and docstrings included

./waf-light --make-waf

The waf script created is standalone and can be redistributed freely (license: BSD).

Installing waf on the system

Waf is a small script (fits in about 100kb) that can be redistributed easily. Most people put the waf script just in their project directory

If you like, waf can be installed on the system using the following command waf install --prefix=/opt

The waf directory

When run, first, waf checks if the WAFDIR environment variable is set. If the WAFDIR environment variable is set to a folder containing wafadmin/, waf will load its cache files from it. Setting WAFDIR is recommended for those using svn waf:

export WAFDIR=/folder/trunk/waf/

If the cache loading from WAFDIR fails, waf will look if it was installed on the system and will try to load itself from there (the location is written in waf during waf install)

/opt/bin/waf
/opt/lib/waf-1.1.0-1446451360

If not installed on the system, waf will uncompress its cache files in the directory where it is located, for example:

/home/ita/bin/.waf-1.1.0-1446451360

Waf directory name

The waf directory is follows a name convention: waf-version-revision, for example waf-1.1.0-1446451360. The version identifies the waf version, and the revision number is a generated random number. The purpose is to make it possible to run several different waf versions at the same time without errors.


Comment by yesud...@gmail.com, Apr 16, 2008

or optionally if you want more debugging

./waf-light --make-waf

This is a bit vague. It should be more like:

or optionally if you want comments and docstrings included

./waf-light --make-waf


Sign in to add a comment
Hosted by Google Code