Compare commits

..

No commits in common. "master" and "v20130611" have entirely different histories.

5 changed files with 20 additions and 78 deletions

View File

@ -8,6 +8,3 @@ python:
install: python
mkdir -p "$(PREFIX)/bin"
install -m 755 $< "$(PREFIX)/bin/python"
clean:
rm -f python

View File

@ -1,6 +1,6 @@
# pyenv-doctor
pyenv-doctor is a [pyenv](https://github.com/pyenv/pyenv) plugin
pyenv-doctor is a [pyenv](https://github.com/yyuu/pyenv) plugin
that provides a `pyenv doctor` command to verify pyenv installation
and development tools to build pythons.
@ -11,7 +11,7 @@ and development tools to build pythons.
Installing pyenv-doctor as a pyenv plugin will give you access to the
`pyenv doctor` command.
$ git clone https://github.com/pyenv/pyenv-doctor.git $(pyenv root)/plugins/pyenv-doctor
$ git clone git://github.com/yyuu/pyenv-doctor.git ~/.pyenv/plugins/pyenv-doctor
## Usage

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash
#
# Summary: Verify pyenv installation and development tools to build pythons.
# Summary: Verify pyenv installation and deevlopment tools to build pythons.
#
# Usage: pyenv doctor [OPTIONS]
#
@ -128,7 +128,7 @@ REPOSITORY="${PYENV_DOCTOR_ROOT}"
BRANCH="$(cd "${PYENV_DOCTOR_ROOT}" && git name-rev --name-only HEAD)"
mkdir -p "${BUILD_PATH}"
cat <<EOF > "${DEFINITION}"
install_git "python-pyenv-doctor" "${REPOSITORY}" "${BRANCH}" standard
install_git "pyenv-doctor" "${REPOSITORY}" "${BRANCH}" standard
EOF
# if none is selected, check as WITH_CPYTHON
@ -137,30 +137,26 @@ if [ -z "${WITH_JYTHON}" ] && [ -z "${WITH_PYPY}" ] && [ -z "${WITH_STACKLESS}"
fi
if [ -n "${WITH_ALL}" ] || [ -n "${WITH_CPYTHON}" ]; then
export CONFIGURE_OPTS="--with-cpython $CONFIGURE_OPTS"
export CONFIGURE_OPTS+="--with-cpython"
fi
if [ -n "${WITH_ALL}" ] || [ -n "${WITH_JYTHON}" ]; then
export CONFIGURE_OPTS="--with-jython $CONFIGURE_OPTS"
export CONFIGURE_OPTS+="--with-jython"
fi
if [ -n "${WITH_ALL}" ] || [ -n "${WITH_PYPY}" ]; then
export CONFIGURE_OPTS="--with-pypy $CONFIGURE_OPTS"
export CONFIGURE_OPTS+="--with-pypy"
fi
if [ -n "${WITH_ALL}" ] || [ -n "${WITH_STACKLESS}" ]; then
export CONFIGURE_OPTS="--with-stackless $CONFIGURE_OPTS"
export CONFIGURE_OPTS+="--with-stackless"
fi
case "$(uname -s)" in
"Darwin" )
## ld(1) on Mac OS X searches /usr/lib first of Homebrew's lib.
## to override system libraries installed by Homebrew,
## ld(1) on Mac OS X searches /usr/lib first of /usr/local/lib.
## to override system libraries installed in /usr/lib,
## we must explicitly specify the library path in "-L".
if command -v brew 1>/dev/null 2>&1; then # Homebrew
[ -d "$(brew --prefix)/include" ] && export CPPFLAGS="-I$(brew --prefix)/include $CPPFLAGS"
[ -d "$(brew --prefix openssl)/include" ] && export CPPFLAGS="-I$(brew --prefix openssl)/include $CPPFLAGS"
[ -d "$(brew --prefix openssl@1.1)/include" ] && export CPPFLAGS="-I$(brew --prefix openssl@1.1)/include $CPPFLAGS"
[ -d "$(brew --prefix)/lib" ] && export LDFLAGS="-L$(brew --prefix)/lib $LDFLAGS"
[ -d "$(brew --prefix openssl)/lib" ] && export LDFLAGS="-L$(brew --prefix openssl)/lib $LDFLAGS"
[ -d "$(brew --prefix openssl@1.1)/lib" ] && export LDFLAGS="-L$(brew --prefix openssl@1.1)/lib $LDFLAGS"
[ -d "/usr/local/include" ] && export CFLAGS+="-I/usr/local/include"
[ -d "/usr/local/lib" ] && export LDFLAGS+="-L/usr/local/lib"
fi
;;
esac
@ -173,7 +169,7 @@ if [ "${STATUS}" == "0" ]; then
else
{ echo -e "\033[0;31mProblem(s) detected while checking system.\033[0m"
echo -e "\033[0;31m\033[0m"
echo -e "\033[0;31mSee https://github.com/pyenv/pyenv/wiki/Common-build-problems for known solutions.\033[0m"
echo -e "\033[0;31mSee https://github.com/yyuu/pyenv/wiki/Common-build-problems for known solutions.\033[0m"
} 1>&2
fi

57
configure vendored
View File

@ -3378,13 +3378,12 @@ fi
done
for ac_header in readline/readline.h, readline/rlconf.h
for ac_header in readline/readline.h
do :
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
if test "x$ac_cv_header_readline_readline_h" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
#define HAVE_READLINE_READLINE_H 1
_ACEOF
HAVE_READLINE_H=yes
else
@ -3441,53 +3440,7 @@ else
fi
if test "$HAVE_LIBSSL" = "no"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL <1.1 not installed. Checking v1.1 or beyond..." >&5
$as_echo "$as_me: WARNING: OpenSSL <1.1 not installed. Checking v1.1 or beyond..." >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_init_ssl in -lssl" >&5
$as_echo_n "checking for OPENSSL_init_ssl in -lssl... " >&6; }
if ${ac_cv_lib_ssl_OPENSSL_init_ssl+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lssl $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char OPENSSL_init_ssl ();
int
main ()
{
return OPENSSL_init_ssl ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_ssl_OPENSSL_init_ssl=yes
else
ac_cv_lib_ssl_OPENSSL_init_ssl=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_OPENSSL_init_ssl" >&5
$as_echo "$ac_cv_lib_ssl_OPENSSL_init_ssl" >&6; }
if test "x$ac_cv_lib_ssl_OPENSSL_init_ssl" = xyes; then :
HAVE_LIBSSL=yes
else
HAVE_LIBSSL=no
fi
if test "$HAVE_LIBSSL" = "no"; then
as_fn_error $? "OpenSSL is not installed." "$LINENO" 5
fi
as_fn_error $? "OpenSSL is not installed." "$LINENO" 5
fi
for ac_header in openssl/ssl.h
do :

View File

@ -28,7 +28,7 @@ if ( test -n "$WITH_CPYTHON" || test -n "$WITH_PYPY" || test -n "$WITH_STACKLESS
if test "$HAVE_LIBREADLINE" = "no"; then
AC_MSG_ERROR([GNU readline is not installed.])
fi
AC_CHECK_HEADERS([readline/readline.h, readline/rlconf.h], [HAVE_READLINE_H=yes], [HAVE_READLINE_H=no], [])
AC_CHECK_HEADERS(readline/readline.h, [HAVE_READLINE_H=yes], [HAVE_READLINE_H=no])
if test "$HAVE_READLINE_H" = "no"; then
AC_MSG_ERROR([GNU readline development header is not installed.])
fi
@ -36,11 +36,7 @@ if ( test -n "$WITH_CPYTHON" || test -n "$WITH_PYPY" || test -n "$WITH_STACKLESS
## OpenSSL
AC_CHECK_LIB(ssl, SSL_library_init, [HAVE_LIBSSL=yes], [HAVE_LIBSSL=no])
if test "$HAVE_LIBSSL" = "no"; then
AC_MSG_WARN([OpenSSL <1.1 not installed. Checking v1.1 or beyond...])
AC_CHECK_LIB(ssl, OPENSSL_init_ssl, [HAVE_LIBSSL=yes], [HAVE_LIBSSL=no])
if test "$HAVE_LIBSSL" = "no"; then
AC_MSG_ERROR([OpenSSL is not installed.])
fi
AC_MSG_ERROR([OpenSSL is not installed.])
fi
AC_CHECK_HEADERS(openssl/ssl.h, [HAVE_SSL_H=yes], [HAVE_SSL_H=no])
if test "$HAVE_SSL_H" = "no"; then