From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 0F1A913873B for ; Sun, 2 Mar 2014 23:07:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 98670E0B66; Sun, 2 Mar 2014 23:07:11 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3629EE0B66 for ; Sun, 2 Mar 2014 23:07:11 +0000 (UTC) Received: from big_daddy.dol-sen.ca (S010600222de111ff.vc.shawcable.net [96.49.5.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: dolsen) by smtp.gentoo.org (Postfix) with ESMTPSA id 3CF1633FAF2 for ; Sun, 2 Mar 2014 23:07:10 +0000 (UTC) From: Brian Dolbec To: gentoo-catalyst@lists.gentoo.org Subject: [gentoo-catalyst] [PATCH] Commit a testpath file to source with instructions on it's use. Date: Sun, 2 Mar 2014 15:07:03 -0800 Message-Id: <1393801623-13968-1-git-send-email-dolsen@gentoo.org> X-Mailer: git-send-email 1.8.5.3 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-catalyst@lists.gentoo.org Reply-to: gentoo-catalyst@lists.gentoo.org X-Archives-Salt: 379d8080-8b2e-439f-b316-89f497d2314c X-Archives-Hash: 7d668c4152661faf31baa3d1526431e6 Make testpath automagic via dwfeed's tweak Update HOWTO on how to run the git checkout code directly without being installed. --- doc/HOWTO.txt | 10 ++++++++-- testpath | 19 +++++++++++++++++++ 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 testpath diff --git a/doc/HOWTO.txt b/doc/HOWTO.txt index 8fe63c1..cec22c3 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 0000000..8394ff6 --- /dev/null +++ b/testpath @@ -0,0 +1,19 @@ + +# When sourced from the same directory as the checkout these 2 paths direct +# commands use your git checkout in the terminal window you wish to run +# the git code in... +# cd ~/catalyst +# source ./testpath +# edit a config file "test.conf" with similar path changes for it to find +# and use/run the git checkout code and to store it's data to a test directory +# it 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 ./test.conf -p -f stage1.spec + +export PATH="$(dirname $BASH_SOURCE[0])/bin:${PATH}" + +export PYTHONPATH="$(dirname $BASH_SOURCE[0]):${PYTHONPATH}" -- 1.8.5.3