Skip to content
Snippets Groups Projects
Commit 01278062 authored by kiilerix's avatar kiilerix
Browse files

setup: make error message for missing Python headers more helpful

parent e9331e97
No related branches found
No related tags found
No related merge requests found
......@@ -297,5 +297,6 @@
self.py_modules.append("mercurial.pure.%s" % ext.name[10:])
self.distribution.ext_modules = []
else:
if not os.path.exists(os.path.join(get_python_inc(), 'Python.h')):
h = os.path.join(get_python_inc(), 'Python.h')
if not os.path.exists(h):
raise SystemExit('Python headers are required to build '
......@@ -301,5 +302,5 @@
raise SystemExit('Python headers are required to build '
'Mercurial')
'Mercurial but weren\'t found in %s' % h)
def find_modules(self):
modules = build_py.find_modules(self)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment