-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
Python builds without readline or openssl support #5
Comments
Turns out, setting the include and lib paths directly via environment variables fixes the issue: echo "Building with options: $configure_options"
local readline_path=$(homebrew_package_path readline)
export CPPFLAGS="-I$readline_path/include ${CPPFLAGS}"
export LDFLAGS="-L$readline_path/lib ${LDFLAGS}"
local openssl_path=$(homebrew_package_path openssl)
export CPPFLAGS="-I$openssl_path/include ${CPPFLAGS}"
export LDFLAGS="-L$openssl_path/lib ${LDFLAGS}"
./configure $configure_options || exit 1
make -j $ASDF_CONCURRENCY || exit 1
make -j $ASDF_CONCURRENCY install || exit 1 I referenced pyenv's source for this fix. I wonder if a better solution would be to make this plugin a wrapper around python-build. |
Hi, sorry for the late reply, and thank you for the heads-up! I also think wrapping python-build seems more appropriate, |
I just updated the plugin to wrap python-build, please let me know how it works for you. |
Just tried it out and worked great for me. Great work. Thanks! |
Problem
When installing python 2.7.9, readline and openssl modules are not built and installed.
Steps to reproduce
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:
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.
The text was updated successfully, but these errors were encountered: