Skip to content
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

Closed
GrahamDumpleton opened this issue Jun 19, 2015 · 5 comments
Closed

Example of enabling build with shared Python library. #392

GrahamDumpleton opened this issue Jun 19, 2015 · 5 comments

Comments

@GrahamDumpleton
Copy link

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:

CONFIGURE_OPTS=--enable-shared pyenv install 2.7.10
@yyuu
Copy link
Contributor

yyuu commented Jun 19, 2015

Anyone on GH can edit wiki.

@yyuu yyuu closed this as completed Jun 19, 2015
carlosperate added a commit to carlosperate/ubittool that referenced this issue Apr 9, 2019
PyInstaller needs Python to be build with shared libraries (instead
of statically), so add env var to do this.
pyenv/pyenv#392
carlosperate added a commit to carlosperate/ubittool that referenced this issue Apr 9, 2019
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
@muxator
Copy link

muxator commented Jul 18, 2019

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

@le-travie
Copy link

$ 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

@native-api
Copy link
Member

@le-travie
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants