From: Brian Dolbec Date: Fri, 25 Jan 2013 04:26:38 +0000 (-0800) Subject: Commit a testpath file to source with instructions on it's use. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=773ae7f9ee04cedba218a9abdc9f9b7e8360f055;p=catalyst.git Commit a testpath file to source with instructions on it's use. Make testpath automagic via dwfeed's tweak Update HOWTO on how to run the git checkout code directly without being installed. --- diff --git a/doc/HOWTO.txt b/doc/HOWTO.txt index 8fe63c1f..cec22c35 100644 --- a/doc/HOWTO.txt +++ b/doc/HOWTO.txt @@ -233,9 +233,15 @@ Running catalyst from a Git checkout If you're developing catalyst, you'll want to test your altered version. An easy way to run it without reinstalling is to setup a -local configuration file and run: +local configuration file. The checkout also includes a testpath file +which when sourced adds it's bin/ to PATH and it's checkout dir to +PYTHONPATH. That terminal will then use the checkout bin/catalyst and +the checkout's python modules. - # ./catalyst -c catalyst.conf -f path/to/your.spec +cd into the checkout directory and run: + + # source ./testpath + # catalyst -c catalyst.conf -f path/to/your.spec The local configuration file can use all the defaults except for `sharedir`, which you should change to point to your development diff --git a/testpath b/testpath new file mode 100644 index 00000000..37af9c9f --- /dev/null +++ b/testpath @@ -0,0 +1,18 @@ + +# edit the following 2 paths to point to your catalyst git checkout if nessecary +# then in a terminal window you wish to run the git code in... +# cd ~/catalyst +# source ./testpath +# edit a config catalyst.conf file. Make similar path changes for it to +# find and use/run the git checkout code. +# The catalyst code can then be run on a system without being installed or +# replacing an existing catalyst install which may be used for production. +# +# then run catalyst from there +# eg: +# +# catalyst -c catalyst.conf -p -f stage1.spec + +export PATH="$(dirname ${BASH_SOURCE[0]})/bin:${PATH}" + +export PYTHONPATH="$(dirname ${BASH_SOURCE[0]})${PYTHONPATH:+:}${PYTHONPATH}"