1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-10 20:43:48 -05:00

Merge pull request #1289 from chrahunt/feature/add-python-gdb

Install python-gdb.py.
This commit is contained in:
Christopher Hunt
2019-03-03 23:47:24 -05:00
committed by GitHub
41 changed files with 78 additions and 68 deletions

View File

@@ -1813,6 +1813,16 @@ build_package_verify_py38() {
build_package_verify_py37 "$1" "${2:-3.8}"
}
# Copy Tools/gdb/libpython.py to pythonX.Y-gdb.py (#1190)
build_package_copy_python_gdb() {
if [ -e "$BUILD_PATH/$1/Tools/gdb/libpython.py" ]; then
local version_re='-([0-9]\.[0-9]+)'
[[ "$1" =~ $version_re ]]
local python_bin="$PREFIX_PATH/bin/python${BASH_REMATCH[1]}"
cp "$BUILD_PATH/$1/Tools/gdb/libpython.py" "$python_bin-gdb.py"
fi
}
build_package_ez_setup() {
local ez_setup="ez_setup.py"
rm -f "${ez_setup}"