build-python: Update to v3.9.7, remove patches
Also add gitignores/dockerignores for directories created during the python build.
This commit is contained in:
1 parent
4b34c42cbc
commit
fefa34fd04
6 files changed
+8
-177
No files matched your search
+2
-8
@@ -17,11 +17,8 @@
|
||||
set -e
|
||||
|
||||
: ${LIBFFI_VERSION:=v3.4.2}
|
||||
: ${PYTHON_MAJOR:=3}
|
||||
: ${PYTHON_MINOR:=9}
|
||||
: ${PYTHON_PATCH:=6}
|
||||
: ${PYTHON_VERSION:=v${PYTHON_MAJOR}.${PYTHON_MINOR}.${PYTHON_PATCH}}
|
||||
: ${PYTHON_VERSION_MINGW:=61c5a4a14932539b31878de0b60bc98bcba791b9}
|
||||
: ${PYTHON_VERSION:=v3.9.7}
|
||||
: ${PYTHON_VERSION_MINGW:=8736112bab36bc8f0612f33237f64473640ff3b8}
|
||||
|
||||
unset HOST
|
||||
|
||||
@@ -120,9 +117,7 @@ fi
|
||||
if [ -n "$SYNC" ] || [ -n "$CHECKOUT_PYTHON" ]; then
|
||||
cd cpython-mingw
|
||||
[ -z "$SYNC" ] || git fetch
|
||||
git reset --hard
|
||||
git checkout $PYTHON_VERSION_MINGW
|
||||
cat ../patches/python/*.patch | patch -Nup1
|
||||
autoreconf -vfi
|
||||
cd ..
|
||||
fi
|
||||
@@ -144,7 +139,6 @@ mkdir -p $BUILDDIR
|
||||
cd $BUILDDIR
|
||||
BUILD=$(../config.guess) # Python configure requires build triplet for cross compilation
|
||||
|
||||
# Avoid gcc workarounds in distutils
|
||||
export CC=$HOST-clang
|
||||
export CXX=$HOST-clang++
|
||||
|
||||
|
||||
Reference in new issue
Block a user