/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Jelmer Vernooij
  • Date: 2019-02-19 00:14:52 UTC
  • mto: (7290.1.10 work)
  • mto: This revision was merged to the branch mainline in revision 7295.
  • Revision ID: jelmer@jelmer.uk-20190219001452-16axgpmh3to606c8
Print error when setuptools is missing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
    sys.stderr.write("[ERROR] Not a supported Python version. Need 2.7+\n")
17
17
    sys.exit(1)
18
18
 
 
19
 
 
20
try:
 
21
    import setuptools
 
22
except ImportError:
 
23
    sys.stderr.write("[ERROR] Please install setuptools\n")
 
24
    sys.exit(1)
 
25
 
 
26
 
19
27
# NOTE: The directory containing setup.py, whether run by 'python setup.py' or
20
28
# './setup.py' or the equivalent with another path, should always be at the
21
29
# start of the path, so this should find the right one...
118
126
BREEZY['packages'] = get_breezy_packages()
119
127
 
120
128
 
121
 
from distutils import log
122
129
from setuptools import setup
123
130
from distutils.version import LooseVersion
124
131
from distutils.command.install_scripts import install_scripts