Packaging

Note: This guide is a work in progress. Please send any comments to ag-info@mcs.anl.gov.

To build installers for the Access Grid, you'll need to have the required dependencies installed on your system, as found on the dependencies page.

### MacOS

svn co https://svn.ci.uchicago.edu/svn/accessgrid/build/macosx
mkdir build
export AGBUILDROOT=pwd/build
python packaging/SetupBuild.py
python packaging/BuildSnapshot.py

### Windows

svn co https://svn.ci.uchicago.edu/svn/accessgrid/build/win32
mkdir build
set AGBUILDROOT=\path\to\build
python packaging\SetupBuild.py
python packaging\BuildSnapshot.py

### Notes

1. The Subversion checkout will include dependency packages that are required for the build. Some of these will be large compressed files.
2. The SetupBuild.py line will expand the compressed packages into the build space.
3. The BuildSnapshot.py command will launch the build. The build process should abort if any step fails, printing an error message. Run "BuildSnapshot.py -h" to see available options.
4. BuildSnapshot.py performs a Subversion checkout of the AccessGrid code. If you want to build from a local checkout of the code, you can use the "-s" and "--no-checkout" options to skip the Subversion checkout and use your local AccessGrid directory.