Make installable using Python distutils
Use installed planex executables in build system

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
Move paths into globally accessible module

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
Build packages within current working directory

Build everything in ./planex-build-root within the current working directory.

This means that for the directory of specs, they can now built using the
installed python modules (planex-configure, planex-build)...

$ planex-configure .
$ planex-build

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
Merge pull request #14 from simonjbeaumont/run-from-anywhere

Build from current working directory
Whitespace: configure.py

Signed-off-by: John Else <john.else@citrix.com>
Whitespace: build.py

Signed-off-by: John Else <john.else@citrix.com>
CP-6530: Add argument --config-dir to configure.py

Instead of using the first argument as the directory from which to fetch
specfiles, configure.py now looks for an argument of the form
"--config-dir=<config-dir>".

Signed-off-by: John Else <john.else@citrix.com>
CP-6530: Add argument --use-distfiles to configure.py

We can now configure whether to use the local distfiles cache.

Signed-off-by: John Else <john.else@citrix.com>
CP-6530: Add CLI arguments to build.py

Whether we are using mock, and whether we are in the XS build system,
are now configurable.

Signed-off-by: John Else <john.else@citrix.com>
Merge pull request #15 from johnelse/cp-6530

Add configuration arguments to planex scripts
Fix error message now planex-* global commands

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
Fail if the COMPONENT is unknown when building

Before this, we would try to chown -R the CONFIG_DIR + /* which was just / when
the CONFIG_DIR was empty leading to an attempt to chown the entire file system.

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
Add api-backports -> xen-api-backports to config

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>