mirror of
https://github.com/pyenv/pyenv.git
synced 2024-12-23 11:22:00 +00:00
df51c13323
We have some patches for CPython in `share/python-build/patches`.
20 lines
352 B
Bash
Executable file
20 lines
352 B
Bash
Executable file
#!/bin/sh
|
|
# Usage: PREFIX=/usr/local ./install.sh
|
|
#
|
|
# Installs python-build under $PREFIX.
|
|
|
|
set -e
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
if [ -z "${PREFIX}" ]; then
|
|
PREFIX="/usr/local"
|
|
fi
|
|
|
|
BIN_PATH="${PREFIX}/bin"
|
|
SHARE_PATH="${PREFIX}/share/python-build"
|
|
|
|
mkdir -p "$BIN_PATH" "$SHARE_PATH"
|
|
|
|
install -p bin/* "$BIN_PATH"
|
|
cp -RPp share/python-build/* "$SHARE_PATH"
|