build-python: Install the license files for libffi and python

This commit is contained in:
Martin Storsjö committed 2026-01-08 11:26:44 +02:00
1 parent 83a3ca8e09
commit 9e00ce96c7
1 file changed
+4
+4
View File
@@ -134,6 +134,8 @@ cd $BUILDDIR
../configure --prefix="$PREFIX" --host=$HOST --disable-symvers --disable-docs ../configure --prefix="$PREFIX" --host=$HOST --disable-symvers --disable-docs
$MAKE -j$CORES $MAKE -j$CORES
$MAKE install $MAKE install
mkdir -p "$PREFIX/share/libffi"
install -m644 ../LICENSE "$PREFIX/share/libffi/LICENSE.txt"
cd ../.. cd ../..
cd cpython-mingw cd cpython-mingw
@@ -166,4 +168,6 @@ find $PREFIX/lib/python* -name __pycache__ | xargs rm -rf
# a Python version that is supposed to be the primary Python. # a Python version that is supposed to be the primary Python.
cp -a $PREFIX/bin/python3.exe $PREFIX/bin/python.exe cp -a $PREFIX/bin/python3.exe $PREFIX/bin/python.exe
install -m644 ../LICENSE "$PREFIX/LICENSE.txt"
cd ../.. cd ../..