mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-29 12:02:48 -05:00
23 lines
368 B
Bash
Executable file
23 lines
368 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
if [ -z "${PREFIX}" ]; then
|
|
PREFIX="/usr/local"
|
|
fi
|
|
|
|
BIN_PATH="${PREFIX}/bin"
|
|
SHARE_PATH="${PREFIX}/share/python-build"
|
|
|
|
mkdir -p "${BIN_PATH}"
|
|
mkdir -p "${SHARE_PATH}"
|
|
|
|
for file in bin/*; do
|
|
cp "${file}" "${BIN_PATH}"
|
|
done
|
|
|
|
for file in share/python-build/*; do
|
|
cp -Rp "${file}" "${SHARE_PATH}"
|
|
done
|
|
|
|
echo "Installed python-build at ${PREFIX}"
|