Skip to content

Commit

Permalink
Merge pull request pyinstaller#1510 from yyuu/error-message-on-missin…
Browse files Browse the repository at this point in the history
…g-python-library

Modify error message on missing Python shared library.
  • Loading branch information
matysek committed Sep 22, 2015
2 parents 036cf05 + 5c06e27 commit daef69a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions PyInstaller/building/build_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,12 +558,13 @@ def _check_python_library(self, binaries):
binaries.append((os.path.basename(python_lib), python_lib, 'BINARY'))
logger.info('Using Python library %s', python_lib)
else:
msg = """Python library not found! This usually happens on Debian/Ubuntu
where you need to install Python library:
apt-get install python3-dev
apt-get install python-dev
msg = """Python library not found! This would mean your Python installation doesn't come with proper library files.
This usually happends by missing development package, or unsuitable build parameters of Python installation.
* On Debian/Ubuntu, you would need to install Python development packages
* apt-get install python3-dev
* apt-get install python-dev
* If you're building Python by yourself, please rebuild your Python with `--enable-shared` (or, `--enable-framework` on Darwin)
"""
raise IOError(msg)

Expand Down

0 comments on commit daef69a

Please sign in to comment.