##// END OF EJS Templates
setup: make error message for missing Python headers more helpful
Mads Kiilerich -
r18905:01278062 default
parent child Browse files
Show More
@@ -297,9 +297,10 b' class hgbuildpy(build_py):'
297 self.py_modules.append("mercurial.pure.%s" % ext.name[10:])
297 self.py_modules.append("mercurial.pure.%s" % ext.name[10:])
298 self.distribution.ext_modules = []
298 self.distribution.ext_modules = []
299 else:
299 else:
300 if not os.path.exists(os.path.join(get_python_inc(), 'Python.h')):
300 h = os.path.join(get_python_inc(), 'Python.h')
301 if not os.path.exists(h):
301 raise SystemExit('Python headers are required to build '
302 raise SystemExit('Python headers are required to build '
302 'Mercurial')
303 'Mercurial but weren\'t found in %s' % h)
303
304
304 def find_modules(self):
305 def find_modules(self):
305 modules = build_py.find_modules(self)
306 modules = build_py.find_modules(self)
General Comments 0
You need to be logged in to leave comments. Login now