From 45f7cd318910d0a5809fb55293bc01e3230929dc Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Fri, 17 Jul 2020 10:03:24 +0200 Subject: [PATCH] Python: newer version of include pip - no need to run get-pip.py --- Programming/Python/build | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Programming/Python/build b/Programming/Python/build index eb53bfa..871aeba 100755 --- a/Programming/Python/build +++ b/Programming/Python/build @@ -56,8 +56,11 @@ pbuild::post_install() { ln -fs "${PREFIX}/include/python${V%.*}m" "${PREFIX}/include/python" ln -fs "${PREFIX}/include/python${V%.*}m" "${PREFIX}/include/python${V%.*}" PATH+=":${PREFIX}/bin" - cd "${BUILDBLOCK_DIR}" - "${PREFIX}/bin/python" 'get-pip.py' + + if (( V_MAJOR == 2 || (V_MAJOR == 3 && V_MINOR <= 7) )); then + cd "${BUILDBLOCK_DIR}" + "${PREFIX}/bin/python" 'get-pip.py' + fi std::info "Building numpy\n" pip${V_MAJOR} install numpy