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
Anyone on GH can edit wiki.
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
Most helpful comment
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