-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example of enabling build with shared Python library. #392
Comments
Anyone on GH can edit wiki. |
PyInstaller needs Python to be build with shared libraries (instead of statically), so add env var to do this. pyenv/pyenv#392
PyInstaller needs Python to be build with shared libraries (instead of statically), so add env var to do this. https://pythonhosted.org/PyInstaller/when-things-go-wrong.html#build-time-python-errors pyenv/pyenv#392
In the meantime, the wiki was long updated. Since Google keeps linking to this old issue, this is a direct link to the relevant page (hopefully more up-to-date than this ticket): https://github.com/pyenv/pyenv/wiki#how-to-build-cpython-with---enable-shared |
$ env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.5.0 what would this be for windows? I have been trying and failing to get it to work on my machine. Obviously windows does not have env |
The wiki page for common problems should give an example of how to install Python with a shared library. A shared library is needed in any embedded system where the Python library itself has to be linked to a dynamically loaded module.
The prime example of this is mod_wsgi.
For Linux it is a simple matter of using:
The text was updated successfully, but these errors were encountered: