Closed
Description
Problem
When installing python 2.7.9, readline and openssl modules are not built and installed.
Steps to reproduce
- Install python:
asdf install 2.7.9`
- Use python:
asdf local python 2.7.9
- Launch interactive python and attempt to import the modules:
>>> import readline
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named readline
>>> import ssl
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/Chris/.asdf/installs/python/2.7.9/lib/python2.7/ssl.py", line 97, in <module>
import _ssl # if we can't import it, let the error propagate
ImportError: No module named _ssl
You can also use the arrow keys and typical ctrl-*
navigation commands and see the escape sequences being output.
Possible solution
Reviewing the build output, it looks the install script is setting openssl and readline options that aren't valid for python:
configure: WARNING: unrecognized options: --with-openssl-dir, --with-readline-dir, --disable-install-doc
I checked homebrew's python formula, and they are patching setup.py
's readline and openssl configurations with paths to homebrew's versions.
It seems like this is the strategy required to fix this problem. Unfortunately, my bash skills aren't sharp enough to make the change myself and PR.
Metadata
Metadata
Assignees
Labels
No labels