Skip to content
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.

Commit

Permalink
Add a info, if pip not installed:
Browse files Browse the repository at this point in the history
  • Loading branch information
jedie committed Oct 8, 2014
1 parent 89e3c45 commit dd3b5db
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bootstrap/source-pylucid-boot.py
Expand Up @@ -151,6 +151,18 @@ def adjust_options(options, args):

print "Create PyLucid environment in:", c.colorize(home_dir, foreground="blue", opts=("bold",))
print
# Check if pip and setuptools are available. See also:
# https://github.com/pypa/packaging-problems/issues/55
try:
import pip, setuptools
except ImportError as err:
sys.stderr.write("ERROR: You must install 'pip' first, before execute this bootstrap script!\n")
sys.stderr.write("e.g.:\n")
sys.stderr.write(" ~$ wget https://bootstrap.pypa.io/get-pip.py -O - | python - --user\n")
sys.stderr.write("See also:\n")
sys.stderr.write(" https://pip.readthedocs.org/en/latest/installing.html\n")
sys.stderr.write("\n(Origin error was: %s)\n" % err)
sys.exit(-1)

p = SysPath()

Expand Down

0 comments on commit dd3b5db

Please sign in to comment.