Skip to content

add an install_dir function to Waf's installation methods

Notifications You must be signed in to change notification settings

dffischer/waf-installdir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

install_dir waftool

Waf normally only handles files, creating directories on the fly as needed. But some projects also need to ensure special permissions for directories or want to install empty directories. This tool enhances waf with the capability to handle directories during installation.

Deprecation Notice

The installdir module only works up to Waf 1.9.0pre1, more specifically until commit 1eaa87413da96295d727407cb04e64e8f6cd348c. Later versions leave no opening to add custom installation methods. To use a recent Waf version, instead of using this tool it is recommended

Usage

The included example shows how to use the module in a wafscript.

The tool can readily be loaded and used in wafscripts as long as it is found by the python module import mechanism. This is normally done by prepending the directory it resides in to the PYTHONPATH environment variable.

Installation

The following command can be used to build an executable from the Waf Git repository including this tool.

git clone https://github.com/waf-project/waf
checkout waf-1.9.0pre1
cd waf
git clone https://github.com/dffischer/waf-installdir
./waf-light configure --prefix=/usr \
  build --make-waf --tools='waf-installdir/installdir.py'

To make it available to a system-wide waf installation, the included waf script can be used to place it into the waf library.

About

add an install_dir function to Waf's installation methods

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages