mirror of
https://github.com/pyenv/pyenv.git
synced 2025-04-21 09:28:02 +00:00
Merge branch 'anaconda'
This commit is contained in:
commit
27ebc8bab7
12 changed files with 317 additions and 0 deletions
|
@ -131,6 +131,10 @@ install_zip() {
|
|||
install_package_using "zip" 1 "$@"
|
||||
}
|
||||
|
||||
install_script() {
|
||||
install_package_using "script" 1 "$@"
|
||||
}
|
||||
|
||||
install_package_using() {
|
||||
local package_type="$1"
|
||||
local package_type_nargs="$2"
|
||||
|
@ -470,6 +474,34 @@ fetch_zip() {
|
|||
} >&4 2>&1
|
||||
}
|
||||
|
||||
fetch_script() {
|
||||
local package_name="$1"
|
||||
local package_url="$2"
|
||||
local mirror_url
|
||||
local checksum
|
||||
|
||||
if [ "$package_url" != "${package_url/\#}" ]; then
|
||||
checksum="${package_url#*#}"
|
||||
package_url="${package_url%%#*}"
|
||||
|
||||
if [ -n "$PYTHON_BUILD_MIRROR_URL" ]; then
|
||||
mirror_url="${PYTHON_BUILD_MIRROR_URL}/$checksum"
|
||||
fi
|
||||
fi
|
||||
|
||||
local package_filename="${package_name}.sh" # TODO: extract suffix from ${package_url}
|
||||
|
||||
if ! symlink_tarball_from_cache "$package_filename" "$checksum"; then
|
||||
echo "Downloading ${package_filename}..." >&2
|
||||
http head "$mirror_url" &&
|
||||
download_tarball "$mirror_url" "$package_filename" "$checksum" ||
|
||||
download_tarball "$package_url" "$package_filename" "$checksum"
|
||||
fi
|
||||
|
||||
mkdir -p "$(dirname "${package_name}/${package_filename}")"
|
||||
mv -f "${package_filename}" "${package_name}/${package_filename}"
|
||||
}
|
||||
|
||||
build_package() {
|
||||
local package_name="$1"
|
||||
shift
|
||||
|
@ -694,6 +726,17 @@ build_package_pypy_builder() {
|
|||
build_package_pypy
|
||||
}
|
||||
|
||||
build_package_anaconda() {
|
||||
local package_name="$1"
|
||||
{ bash "${package_name}.sh" -b -p "${PREFIX_PATH}"
|
||||
} >&4 2>&1
|
||||
}
|
||||
|
||||
build_package_miniconda() {
|
||||
build_package_anaconda "$@"
|
||||
"${PREFIX_PATH}/bin/conda" install --yes "pip"
|
||||
}
|
||||
|
||||
build_package_copy() {
|
||||
mkdir -p "$PREFIX_PATH"
|
||||
cp -fR . "$PREFIX_PATH"
|
||||
|
|
26
plugins/python-build/share/python-build/anaconda-1.4.0
Normal file
26
plugins/python-build/share/python-build/anaconda-1.4.0
Normal file
|
@ -0,0 +1,26 @@
|
|||
case "$(uname -s)" in
|
||||
"Darwin" )
|
||||
package_name="Anaconda-1.4.0-MacOSX-x86_64"
|
||||
package_url="http://repo.continuum.io/archive/Anaconda-1.4.0-MacOSX-x86_64.sh#db8779f0a663e025da1b19755f372a57"
|
||||
;;
|
||||
"Linux" )
|
||||
case "$(uname -m)" in
|
||||
"i386" | "i486" | "i586" | "i686" | "i786" )
|
||||
package_name="Anaconda-1.4.0-Linux-x86"
|
||||
package_url="http://repo.continuum.io/archive/Anaconda-1.4.0-Linux-x86.sh#d5826bb10bb25d2f03639f841ef2f65f"
|
||||
;;
|
||||
"x86_64" )
|
||||
package_name="Anaconda-1.4.0-Linux-x86_64"
|
||||
package_url="http://repo.continuum.io/archive/Anaconda-1.4.0-Linux-x86_64.sh#9be0e7340f0cd2d2cbd5acbe8e988f45"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -n "${package_name}" ] && [ -n "${package_url}" ]; then
|
||||
install_script "${package_name}" "${package_url}" "anaconda" verify_py27
|
||||
else
|
||||
{ echo "Precompiled binary of anaconda-1.4.0 is not available for $(uname -s)-$(uname -m)."
|
||||
} 1>&4 2>&1
|
||||
exit 1
|
||||
fi
|
26
plugins/python-build/share/python-build/anaconda-1.5.0
Normal file
26
plugins/python-build/share/python-build/anaconda-1.5.0
Normal file
|
@ -0,0 +1,26 @@
|
|||
case "$(uname -s)" in
|
||||
"Darwin" )
|
||||
package_name="Anaconda-1.5.0-MacOSX-x86_64"
|
||||
package_url="http://repo.continuum.io/archive/Anaconda-1.5.0-MacOSX-x86_64.sh#6fe90601dbcecb29a2afcaf44aeb37f6"
|
||||
;;
|
||||
"Linux" )
|
||||
case "$(uname -m)" in
|
||||
"i386" | "i486" | "i586" | "i686" | "i786" )
|
||||
package_name="Anaconda-1.5.0-Linux-x86"
|
||||
package_url="http://repo.continuum.io/archive/Anaconda-1.5.0-Linux-x86.sh#2a75cab6536838635fd38ee7fd3e2411"
|
||||
;;
|
||||
"x86_64" )
|
||||
package_name="Anaconda-1.5.0-Linux-x86_64"
|
||||
package_url="http://repo.continuum.io/archive/Anaconda-1.5.0-Linux-x86_64.sh#8319288082262fefbe322451aeae06ce"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -n "${package_name}" ] && [ -n "${package_url}" ]; then
|
||||
install_script "${package_name}" "${package_url}" "anaconda" verify_py27
|
||||
else
|
||||
{ echo "Precompiled binary of anaconda-1.5.0 is not available for $(uname -s)-$(uname -m)."
|
||||
} 1>&4 2>&1
|
||||
exit 1
|
||||
fi
|
14
plugins/python-build/share/python-build/anaconda-1.5.1
Normal file
14
plugins/python-build/share/python-build/anaconda-1.5.1
Normal file
|
@ -0,0 +1,14 @@
|
|||
case "$(uname -s)" in
|
||||
"Darwin" )
|
||||
package_name="Anaconda-1.5.1-MacOSX-x86_64"
|
||||
package_url="http://repo.continuum.io/archive/Anaconda-1.5.1-MacOSX-x86_64.sh#03942512daf1b39eb3ff9016fc7efa0c"
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -n "${package_name}" ] && [ -n "${package_url}" ]; then
|
||||
install_script "${package_name}" "${package_url}" "anaconda" verify_py27
|
||||
else
|
||||
{ echo "Precompiled binary of anaconda-1.5.1 is not available for $(uname -s)-$(uname -m)."
|
||||
} 1>&4 2>&1
|
||||
exit 1
|
||||
fi
|
26
plugins/python-build/share/python-build/anaconda-1.6.0
Normal file
26
plugins/python-build/share/python-build/anaconda-1.6.0
Normal file
|
@ -0,0 +1,26 @@
|
|||
case "$(uname -s)" in
|
||||
"Darwin" )
|
||||
package_name="Anaconda-1.6.0-MacOSX-x86_64"
|
||||
package_url="http://repo.continuum.io/archive/Anaconda-1.6.0-MacOSX-x86_64.sh#cccdd0353bfd46d3a93143fc6e47d728"
|
||||
;;
|
||||
"Linux" )
|
||||
case "$(uname -m)" in
|
||||
"i386" | "i486" | "i586" | "i686" | "i786" )
|
||||
package_name="Anaconda-1.6.0-Linux-x86"
|
||||
package_url="http://repo.continuum.io/archive/Anaconda-1.6.0-Linux-x86.sh#7a7f1f53684d38a7aa36935e34af30a3"
|
||||
;;
|
||||
"x86_64" )
|
||||
package_name="Anaconda-1.6.0-Linux-x86_64"
|
||||
package_url="http://repo.continuum.io/archive/Anaconda-1.6.0-Linux-x86_64.sh#207a0b4ebde49bcde67925ac8c72fe37"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -n "${package_name}" ] && [ -n "${package_url}" ]; then
|
||||
install_script "${package_name}" "${package_url}" "anaconda" verify_py27
|
||||
else
|
||||
{ echo "Precompiled binary of anaconda-1.6.0 is not available for $(uname -s)-$(uname -m)."
|
||||
} 1>&4 2>&1
|
||||
exit 1
|
||||
fi
|
26
plugins/python-build/share/python-build/anaconda-1.6.1
Normal file
26
plugins/python-build/share/python-build/anaconda-1.6.1
Normal file
|
@ -0,0 +1,26 @@
|
|||
case "$(uname -s)" in
|
||||
"Darwin" )
|
||||
package_name="Anaconda-1.6.1-MacOSX-x86_64"
|
||||
package_url="http://repo.continuum.io/archive/Anaconda-1.6.1-MacOSX-x86_64.sh#4b60123e71864c447a0adc16398d5386"
|
||||
;;
|
||||
"Linux" )
|
||||
case "$(uname -m)" in
|
||||
"i386" | "i486" | "i586" | "i686" | "i786" )
|
||||
package_name="Anaconda-1.6.1-Linux-x86"
|
||||
package_url="http://repo.continuum.io/archive/Anaconda-1.6.1-Linux-x86.sh#06412ae8de02c87b8de7d7e6d35ed092"
|
||||
;;
|
||||
"x86_64" )
|
||||
package_name="Anaconda-1.6.1-Linux-x86_64"
|
||||
package_url="http://repo.continuum.io/archive/Anaconda-1.6.1-Linux-x86_64.sh#70a1294c01e3ab5925fc52f2603de159"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -n "${package_name}" ] && [ -n "${package_url}" ]; then
|
||||
install_script "${package_name}" "${package_url}" "anaconda" verify_py27
|
||||
else
|
||||
{ echo "Precompiled binary of anaconda-1.6.1 is not available for $(uname -s)-$(uname -m)."
|
||||
} 1>&4 2>&1
|
||||
exit 1
|
||||
fi
|
26
plugins/python-build/share/python-build/anaconda-1.7.0
Normal file
26
plugins/python-build/share/python-build/anaconda-1.7.0
Normal file
|
@ -0,0 +1,26 @@
|
|||
case "$(uname -s)" in
|
||||
"Darwin" )
|
||||
package_name="Anaconda-1.7.0-MacOSX-x86_64"
|
||||
package_url="http://repo.continuum.io/archive/Anaconda-1.7.0-MacOSX-x86_64.sh#16194eb9be2301eeb135f9f01695a566"
|
||||
;;
|
||||
"Linux" )
|
||||
case "$(uname -m)" in
|
||||
"i386" | "i486" | "i586" | "i686" | "i786" )
|
||||
package_name="Anaconda-1.7.0-Linux-x86"
|
||||
package_url="http://repo.continuum.io/archive/Anaconda-1.7.0-Linux-x86.sh#bbde22bd0346ad9c8932b4d98c0f4000"
|
||||
;;
|
||||
"x86_64" )
|
||||
package_name="Anaconda-1.7.0-Linux-x86_64"
|
||||
package_url="http://repo.continuum.io/archive/Anaconda-1.7.0-Linux-x86_64.sh#01dc7d6df2ed592e5401ab4fbe3aed4a"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -n "${package_name}" ] && [ -n "${package_url}" ]; then
|
||||
install_script "${package_name}" "${package_url}" "anaconda" verify_py27
|
||||
else
|
||||
{ echo "Precompiled binary of anaconda-1.7.0 is not available for $(uname -s)-$(uname -m)."
|
||||
} 1>&4 2>&1
|
||||
exit 1
|
||||
fi
|
26
plugins/python-build/share/python-build/anaconda-1.8.0
Normal file
26
plugins/python-build/share/python-build/anaconda-1.8.0
Normal file
|
@ -0,0 +1,26 @@
|
|||
case "$(uname -s)" in
|
||||
"Darwin" )
|
||||
package_name="Anaconda-1.8.0-MacOSX-x86_64"
|
||||
package_url="http://repo.continuum.io/archive/Anaconda-1.8.0-MacOSX-x86_64.sh#9fd7dd485c5f04fb65699a290e69671c"
|
||||
;;
|
||||
"Linux" )
|
||||
case "$(uname -m)" in
|
||||
"i386" | "i486" | "i586" | "i686" | "i786" )
|
||||
package_name="Anaconda-1.8.0-Linux-x86"
|
||||
package_url="http://repo.continuum.io/archive/Anaconda-1.8.0-Linux-x86.sh#5028bf0aa7ff8a071d5532b8f8ec924c"
|
||||
;;
|
||||
"x86_64" )
|
||||
package_name="Anaconda-1.8.0-Linux-x86_64"
|
||||
package_url="http://repo.continuum.io/archive/Anaconda-1.8.0-Linux-x86_64.sh#398d4b7ddc5c0a16c556c415b2444266"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -n "${package_name}" ] && [ -n "${package_url}" ]; then
|
||||
install_script "${package_name}" "${package_url}" "anaconda" verify_py27
|
||||
else
|
||||
{ echo "Precompiled binary of anaconda-1.8.0 is not available for $(uname -s)-$(uname -m)."
|
||||
} 1>&4 2>&1
|
||||
exit 1
|
||||
fi
|
26
plugins/python-build/share/python-build/miniconda-2.2.2
Normal file
26
plugins/python-build/share/python-build/miniconda-2.2.2
Normal file
|
@ -0,0 +1,26 @@
|
|||
case "$(uname -s)" in
|
||||
"Darwin" )
|
||||
package_name="Miniconda-2.2.2-MacOSX-x86_64"
|
||||
package_url="http://repo.continuum.io/miniconda/Miniconda-2.2.2-MacOSX-x86_64.sh#cd0c8059fd7040a25d015c67f85bbc44"
|
||||
;;
|
||||
"Linux" )
|
||||
case "$(uname -m)" in
|
||||
"i386" | "i486" | "i586" | "i686" | "i786" )
|
||||
package_name="Miniconda-2.2.2-Linux-x86"
|
||||
package_url="http://repo.continuum.io/miniconda/Miniconda-2.2.2-Linux-x86.sh#26a4bdf7183aefa360f2aba8e9386a7f"
|
||||
;;
|
||||
"x86_64" )
|
||||
package_name="Miniconda-2.2.2-Linux-x86_64"
|
||||
package_url="http://repo.continuum.io/miniconda/Miniconda-2.2.2-Linux-x86_64.sh#a24a8baa264dee7cfd9286ae3d4add60"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -n "${package_name}" ] && [ -n "${package_url}" ]; then
|
||||
install_script "${package_name}" "${package_url}" "miniconda" verify_py27
|
||||
else
|
||||
{ echo "Precompiled binary of miniconda-2.2.2 is not available for $(uname -s)-$(uname -m)."
|
||||
} 1>&4 2>&1
|
||||
exit 1
|
||||
fi
|
26
plugins/python-build/share/python-build/miniconda-3.0.0
Normal file
26
plugins/python-build/share/python-build/miniconda-3.0.0
Normal file
|
@ -0,0 +1,26 @@
|
|||
case "$(uname -s)" in
|
||||
"Darwin" )
|
||||
package_name="Miniconda-3.0.0-MacOSX-x86_64"
|
||||
package_url="http://repo.continuum.io/miniconda/Miniconda-3.0.0-MacOSX-x86_64.sh#4dc63992aca6ddb3d10aba902ed00a56"
|
||||
;;
|
||||
"Linux" )
|
||||
case "$(uname -m)" in
|
||||
"i386" | "i486" | "i586" | "i686" | "i786" )
|
||||
package_name="Miniconda-3.0.0-Linux-x86"
|
||||
package_url="http://repo.continuum.io/miniconda/Miniconda-3.0.0-Linux-x86.sh#9d1473a904a39f44d6f8e0860424d16b"
|
||||
;;
|
||||
"x86_64" )
|
||||
package_name="Miniconda-3.0.0-Linux-x86_64"
|
||||
package_url="http://repo.continuum.io/miniconda/Miniconda-3.0.0-Linux-x86_64.sh#acf150992cf8d5c332064b31ff885858"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -n "${package_name}" ] && [ -n "${package_url}" ]; then
|
||||
install_script "${package_name}" "${package_url}" "miniconda" verify_py27
|
||||
else
|
||||
{ echo "Precompiled binary of miniconda-3.0.0 is not available for $(uname -s)-$(uname -m)."
|
||||
} 1>&4 2>&1
|
||||
exit 1
|
||||
fi
|
26
plugins/python-build/share/python-build/miniconda3-2.2.2
Normal file
26
plugins/python-build/share/python-build/miniconda3-2.2.2
Normal file
|
@ -0,0 +1,26 @@
|
|||
case "$(uname -s)" in
|
||||
"Darwin" )
|
||||
package_name="Miniconda3-2.2.2-MacOSX-x86_64"
|
||||
package_url="http://repo.continuum.io/miniconda/Miniconda3-2.2.2-MacOSX-x86_64.sh#cc227b40bee9ea5f117114726f3b8a35"
|
||||
;;
|
||||
"Linux" )
|
||||
case "$(uname -m)" in
|
||||
"i386" | "i486" | "i586" | "i686" | "i786" )
|
||||
package_name="Miniconda3-2.2.2-Linux-x86"
|
||||
package_url="http://repo.continuum.io/miniconda/Miniconda3-2.2.2-Linux-x86.sh#2dac0e1abf6b0599b6c59ccf3a8cbcf2"
|
||||
;;
|
||||
"x86_64" )
|
||||
package_name="Miniconda3-2.2.2-Linux-x86_64"
|
||||
package_url="http://repo.continuum.io/miniconda/Miniconda3-2.2.2-Linux-x86_64.sh#486bd0f9fa6a6f51e4194ce2a91a4b8e"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -n "${package_name}" ] && [ -n "${package_url}" ]; then
|
||||
install_script "${package_name}" "${package_url}" "miniconda" verify_py33
|
||||
else
|
||||
{ echo "Precompiled binary of miniconda3-2.2.2 is not available for $(uname -s)-$(uname -m)."
|
||||
} 1>&4 2>&1
|
||||
exit 1
|
||||
fi
|
26
plugins/python-build/share/python-build/miniconda3-3.0.0
Normal file
26
plugins/python-build/share/python-build/miniconda3-3.0.0
Normal file
|
@ -0,0 +1,26 @@
|
|||
case "$(uname -s)" in
|
||||
"Darwin" )
|
||||
package_name="Miniconda3-3.0.0-MacOSX-x86_64"
|
||||
package_url="http://repo.continuum.io/miniconda/Miniconda3-3.0.0-MacOSX-x86_64.sh#2b356f05895a0694fc59f7cd809038f2"
|
||||
;;
|
||||
"Linux" )
|
||||
case "$(uname -m)" in
|
||||
"i386" | "i486" | "i586" | "i686" | "i786" )
|
||||
package_name="Miniconda3-3.0.0-Linux-x86"
|
||||
package_url="http://repo.continuum.io/miniconda/Miniconda3-3.0.0-Linux-x86.sh#4abe8655f5c361338fb317b018ce7c98"
|
||||
;;
|
||||
"x86_64" )
|
||||
package_name="Miniconda3-3.0.0-Linux-x86_64"
|
||||
package_url="http://repo.continuum.io/miniconda/Miniconda3-3.0.0-Linux-x86_64.sh#f74f8e9223492ef292a9b2d87e265de9"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -n "${package_name}" ] && [ -n "${package_url}" ]; then
|
||||
install_script "${package_name}" "${package_url}" "miniconda" verify_py33
|
||||
else
|
||||
{ echo "Precompiled binary of miniconda3-3.0.0 is not available for $(uname -s)-$(uname -m)."
|
||||
} 1>&4 2>&1
|
||||
exit 1
|
||||
fi
|
Loading…
Add table
Reference in a new issue