Commits

Vincent Hillenbrink  committed f227e9f

Added pip aliases and example requirements

  • Participants
  • Parent commits 8d88085

Comments (0)

Files changed (4)

File requirements/libs-development.txt

+# Example requirements for development
+Django
+PyYAML
+docutils
+Sphinx
+pyflakes
+Pygments
+pysmell
+django-debug-toolbar

File requirements/libs-production.txt

+# Example requirements for production
+Django==1.2.1
+PyYAML==3.09

File scripts/initenv_example

 DJANGO_SETTINGS=settings.env.development
 SHOW_DJANGO_ENVIRONMENT=yes
 
+# These two lines help greatly when using pip with virtualenv, see
+# http://pip.openplans.org/
+export PIP_REQUIRE_VIRTUALENV=true PIP_RESPECT_VIRTUALENV=true
+
 # Pass additional directories for sys.path as arguments to
 # initenv_generic, e.g.
 # source $PROJECT_ROOT/scripts/initenv_generic $PROJECT_ROOT/apps
 source $PROJECT_ROOT/scripts/initenv_generic
-
 [ ! $? -eq 0 ] && return 1

File scripts/initenv_generic

 # Some useful aliases
 alias cdroot="cd $PROJECT_ROOT"
 alias cdjango="cd $PROJECT_ROOT/$DJANGO_PROJECT"
+alias pipup-dev="pip -q install -r $PROJECT_ROOT/requirements/libs-development.txt"
+alias pipup-prod="pip -q install -r $PROJECT_ROOT/requirements/libs-production.txt"
 alias runserver="django-admin.py runserver \`$PROJECT_ROOT/scripts/get_local_server_port.py\`"
 alias syncdb="django-admin.py syncdb"