summaryrefslogtreecommitdiff
path: root/HACKING.txt
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2013-08-16 05:34:12 -0700
committerChris McDonough <chrism@plope.com>2013-08-16 05:34:12 -0700
commitb7314f804c0c550c3763456ce198e541591f17b8 (patch)
tree81fc774e40d4b325950e58abb96a55086a86a9fc /HACKING.txt
parent18d39328082dce27c9ce48364e3d6baa4d76ec79 (diff)
parent00a08a307574b231a5a8c1142bc675732a03632b (diff)
downloadpyramid-b7314f804c0c550c3763456ce198e541591f17b8.tar.gz
pyramid-b7314f804c0c550c3763456ce198e541591f17b8.tar.bz2
pyramid-b7314f804c0c550c3763456ce198e541591f17b8.zip
Merge pull request #1096 from tomster/hacking-with-tox
add custom tox config that creates a development environment
Diffstat (limited to 'HACKING.txt')
-rw-r--r--HACKING.txt22
1 files changed, 20 insertions, 2 deletions
diff --git a/HACKING.txt b/HACKING.txt
index 5b5dcc458..563903f2f 100644
--- a/HACKING.txt
+++ b/HACKING.txt
@@ -16,13 +16,31 @@ checkout.
- Check out a read-only copy of the Pyramid source::
- $ git clone git://github.com/Pylons/pyramid.git
+ $ git clone git://github.com/Pylons/pyramid.git .
(alternately, create a writeable fork on GitHub and check that out).
+Since pyramid is a framework and not an application, it can be
+convenient to work against a sample application, preferably in its
+own virtualenv. A quick way to achieve this is to (ab-)use ``tox``
+with a custom configuration file that's part of the checkout::
+
+ tox -c hacking-tox.ini
+
+This will create a python-2.7 based virtualenv named ``env27`` (pyramid's
+``.gitconfig` ignores all top-level folders that start with ``env`` specifically
+for this use case) and inside that a simple pyramid application named
+``hacking`` that you can then fire up like so::
+
+ cd env27/hacking
+ ../bin/pserve development.ini
+
+Alternatively, if you don't want to install ``tox`` at this point,
+you an achieve the same manually by following these steps:
+
- Create a virtualenv in which to install Pyramid::
- $ virtualenv2.6 --no-site-packages env
+ $ virtualenv --no-site-packages env
- Install ``setuptools-git`` into the virtualenv (for good measure, as we're
using git to do version control)::