Skip to content

Commit 9b0eb64

Browse files
committed
Added explicit error message when build failed due to missing installation requirements
1 parent 4c7af43 commit 9b0eb64

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

winpython/utils.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,14 @@ def build_wininst(root, python_exe=None, copy_to=None,
337337
p.stdout.close()
338338
p.stderr.close()
339339
distdir = osp.join(root, 'dist')
340+
if not osp.isdir(distdir):
341+
raise RuntimeError("Build failed: see package README file for further"\
342+
" details regarding installation requirements.\n\n"\
343+
"For more concrete debugging infos, please try to build "\
344+
"the package from the command line:\n"\
345+
"1. Open a WinPython command prompt\n"\
346+
"2. Change working directory to the appropriate folder\n"\
347+
"3. Type `python setup.py build install`")
340348
pattern = WININST_PATTERN.replace(r'(win32|win\-amd64)', archstr)
341349
for distname in os.listdir(distdir):
342350
match = re.match(pattern, distname)

0 commit comments

Comments
 (0)