next up previous index
Next: Writing Documentation Up: Programming in Opus and Previous: Open Issues   Index


Building an Opus Installer

We use distutils and setuptools to build and distribute Opus. distutils has been the de-facto standard package for building and distributing Python software, and setuptools provides additional flexibility that makes that process even easier.

In the opus_core project, run "python packager.py" from the command-line. This will produce ..\..\ dist\opus-major.minor.build.zip, where major is the major version number, minor is the minor version number, and build is the build number. This zip file is all you need to distribute the Opus source. Refer to Chapter 3 for installation instructions.

Changing the format of the built distribution is a command-line parameter to packager.py called --distribution-format, and this parameter corresponds to the standard distutils formats, as outlined on http://python.mirrors.ilisys.com.au/dev/doc/devel/dist/built-dist.html

There may be different version numbers for each package and for the distribution. The distribution version number is specified by the opus_version property in nightly's build.xml file. Each package specifies its own version number in the version property within its opus_package_info.py file.


next up previous index
Next: Writing Documentation Up: Programming in Opus and Previous: Open Issues   Index
info (at) urbansim.org