Permalink
Browse files

Add python environment and install hg and bzr

  • Loading branch information...
1 parent 2f558cc commit 9d1ecf66713d2eb90ff5dcddd5121b4318138f53 @surma surma committed with kr Apr 5, 2012
Showing with 6,165 additions and 0 deletions.
  1. +29 −0 bin/compile
  2. +33 −0 vendor/virtualenv-1.7/AUTHORS.txt
  3. +16 −0 vendor/virtualenv-1.7/HACKING
  4. +22 −0 vendor/virtualenv-1.7/LICENSE.txt
  5. +9 −0 vendor/virtualenv-1.7/MANIFEST.in
  6. +906 −0 vendor/virtualenv-1.7/PKG-INFO
  7. +70 −0 vendor/virtualenv-1.7/bin/rebuild-script.py
  8. +52 −0 vendor/virtualenv-1.7/bin/refresh-support-files.py
  9. +130 −0 vendor/virtualenv-1.7/docs/Makefile
  10. +229 −0 vendor/virtualenv-1.7/docs/_theme/nature/static/nature.css_t
  11. +54 −0 vendor/virtualenv-1.7/docs/_theme/nature/static/pygments.css
  12. +4 −0 vendor/virtualenv-1.7/docs/_theme/nature/theme.conf
  13. +136 −0 vendor/virtualenv-1.7/docs/conf.py
  14. +487 −0 vendor/virtualenv-1.7/docs/index.txt
  15. +170 −0 vendor/virtualenv-1.7/docs/make.bat
  16. +409 −0 vendor/virtualenv-1.7/docs/news.txt
  17. +3 −0 vendor/virtualenv-1.7/scripts/virtualenv
  18. +5 −0 vendor/virtualenv-1.7/setup.cfg
  19. +58 −0 vendor/virtualenv-1.7/setup.py
  20. 0 vendor/virtualenv-1.7/tests/__init__.py
  21. +50 −0 vendor/virtualenv-1.7/tests/test_virtualenv.py
  22. +906 −0 vendor/virtualenv-1.7/virtualenv.egg-info/PKG-INFO
  23. +38 −0 vendor/virtualenv-1.7/virtualenv.egg-info/SOURCES.txt
  24. +1 −0 vendor/virtualenv-1.7/virtualenv.egg-info/dependency_links.txt
  25. +2 −0 vendor/virtualenv-1.7/virtualenv.egg-info/entry_points.txt
  26. +1 −0 vendor/virtualenv-1.7/virtualenv.egg-info/not-zip-safe
  27. +2 −0 vendor/virtualenv-1.7/virtualenv.egg-info/top_level.txt
  28. +2,102 −0 vendor/virtualenv-1.7/virtualenv.py
  29. 0 vendor/virtualenv-1.7/virtualenv_support/__init__.py
  30. +31 −0 vendor/virtualenv-1.7/virtualenv_support/activate.bat
  31. +32 −0 vendor/virtualenv-1.7/virtualenv_support/activate.csh
  32. +79 −0 vendor/virtualenv-1.7/virtualenv_support/activate.fish
  33. +76 −0 vendor/virtualenv-1.7/virtualenv_support/activate.sh
  34. +17 −0 vendor/virtualenv-1.7/virtualenv_support/deactivate.bat
  35. BIN vendor/virtualenv-1.7/virtualenv_support/distribute-0.6.24.tar.gz
  36. +6 −0 vendor/virtualenv-1.7/virtualenv_support/distutils.cfg
  37. BIN vendor/virtualenv-1.7/virtualenv_support/pip-1.0.2.tar.gz
  38. BIN vendor/virtualenv-1.7/virtualenv_support/setuptools-0.6c11-py2.4.egg
  39. BIN vendor/virtualenv-1.7/virtualenv_support/setuptools-0.6c11-py2.5.egg
  40. BIN vendor/virtualenv-1.7/virtualenv_support/setuptools-0.6c11-py2.6.egg
  41. BIN vendor/virtualenv-1.7/virtualenv_support/setuptools-0.6c11-py2.7.egg
View
@@ -9,6 +9,17 @@ cache=$(cd "$2/" && pwd)
ver=go1
file=go.$ver.linux-amd64.tar.gz
url=http://go.googlecode.com/files/$file
+buildpack=$(dirname $(dirname $0))
+
+# Python
+venv=$cache/venv
+mkdir -p $cache/pip
+python=python2.7
+PATH=$venv/bin:$PATH
+
+virtualenv() {
+ python "$buildpack/vendor/virtualenv-1.7/virtualenv.py" "$@"
+}
if ! test -f $build/.godir
then
@@ -44,6 +55,24 @@ GOROOT=$cache/go-$ver/go export GOROOT
GOPATH=$build/.heroku/g export GOPATH
PATH=$GOROOT/bin:$PATH
+echo "-----> Checking for Mercurial and Bazaar"
+(
+ set -e
+ which hg && which bzr && exit
+ echo "Installing Mercurial and Bazaar"
+
+ virtualenv --python $python --distribute --never-download --prompt='(venv) ' $venv
+ if [ "$?" -ne 0 ]; then
+ echo "Warning: Python environment corrupted. Rebuilding"
+ rm -rf $venv/* || true
+ virtualenv --python $python --distribute --never-download --prompt='(venv) ' $venv
+ fi
+ . $venv/bin/activate
+
+ pip install --use-mirrors mercurial
+ pip install --use-mirrors bzr
+) 2>&1 | sed -u 's/^/ /'
+
name=$(cat $build/.godir)
p=$GOPATH/src/$name
mkdir -p $p
@@ -0,0 +1,33 @@
+Author
+------
+
+Ian Bicking
+
+Maintainers
+-----------
+
+Brian Rosner
+Carl Meyer
+Jannis Leidel
+
+Contributors
+------------
+
+Alex Grönholm
+Antonio Cuni
+Armin Ronacher
+Chris McDonough
+Christian Stefanescu
+Christopher Nilsson
+Curt Micol
+Douglas Creager
+Gunnlaugur Thor Briem
+Jeff Hammel
+Jorge Vargas
+Josh Bronson
+Kumar McMillan
+Lars Francke
+Philip Jenvey
+Ronny Pfannschmidt
+Tarek Ziadé
+Vinay Sajip
@@ -0,0 +1,16 @@
+virtualenv
+==========
+
+See docs/index.txt for user documentation.
+
+Contributor notes
+-----------------
+
+* virtualenv is designed to work on python 2 and 3 with a single code base.
+ Use Python 3 print-function syntax, and always use sys.exc_info()[1]
+ inside the `except` block to get at exception objects.
+
+* virtualenv uses git-flow_ to `coordinate development`_.
+
+.. _git-flow: https://github.com/nvie/gitflow
+.. _coordinate development: http://nvie.com/posts/a-successful-git-branching-model/
@@ -0,0 +1,22 @@
+Copyright (c) 2007 Ian Bicking and Contributors
+Copyright (c) 2009 Ian Bicking, The Open Planning Project
+Copyright (c) 2011 The virtualenv developers
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,9 @@
+recursive-include docs *.txt
+recursive-include scripts *
+recursive-include virtualenv_support *.egg *.tar.gz
+recursive-exclude virtualenv_support *.py
+recursive-exclude docs/_templates *.*
+include virtualenv_support/__init__.py
+include *.py
+include AUTHORS.txt
+include LICENSE.txt
Oops, something went wrong.

0 comments on commit 9d1ecf6

Please sign in to comment.