From 843ac0a524bfdbfd487d4730552e69e7f81fb504 Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Sun, 10 Aug 2014 15:42:09 +0300 Subject: [PATCH] bashrc & zshrc: fix #36 pyenv should now always build Pythons with `--enable-shared`. --- bashrc | 3 +++ zshrc | 3 +++ 2 files changed, 6 insertions(+) diff --git a/bashrc b/bashrc index 22194b92..c181c03e 100644 --- a/bashrc +++ b/bashrc @@ -545,6 +545,9 @@ alias purgeconfig="apt-get install --reinstall -o DPkg::options::=--force-confas # Send command output to http://sprunge.us `command|sprungeus` alias sprungeus="curl -F 'sprunge=<-' http://sprunge.us" +# Always build pythons with --enable-shared when using pyenv +alias pyenv='CONFIGURE_OPTS="--enable-shared" PYTHON_CONFIGURE_OPTS="--enable-shared" command \pyenv' + # Allow custom aliases to be put in .aliases or .bash_aliases . # .aliases diff --git a/zshrc b/zshrc index 7c0bfd86..63af4027 100644 --- a/zshrc +++ b/zshrc @@ -515,6 +515,9 @@ alias purgeconfig="apt-get install --reinstall -o DPkg::options::=--force-confas # Send command output to http://sprunge.us `command|sprungeus` alias sprungeus="curl -F 'sprunge=<-' http://sprunge.us" +# Always build pythons with --enable-shared when using pyenv +alias pyenv='CONFIGURE_OPTS="--enable-shared" PYTHON_CONFIGURE_OPTS="--enable-shared" command \pyenv' + # .aliases if [ -f ~/.aliases ]; then source ~/.aliases