mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-08-17 01:10:28 +03:00
Toolchain+Ports: Install host python into Local/python, not Local/$ARCH
Following the pattern for qemu, mold, and clang, we should install the host python required to build the python port into its own install tree rather than forcing it into the GNU compiler's bindir.
This commit is contained in:
parent
242bbf1be4
commit
dcc0f299be
Notes:
sideshowbarker
2024-07-17 09:49:22 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/commit/dcc0f299be Pull-request: https://github.com/SerenityOS/serenity/pull/14291 Reviewed-by: https://github.com/linusg Reviewed-by: https://github.com/timschumi
@ -2,6 +2,8 @@
|
||||
|
||||
source version.sh
|
||||
|
||||
export PATH="${SERENITY_SOURCE_DIR}/Toolchain/Local/python/bin:${PATH}"
|
||||
|
||||
port=python3
|
||||
version="${PYTHON_VERSION}"
|
||||
workdir="Python-${version}"
|
||||
|
@ -5,9 +5,8 @@ set -e
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
ARCH=${ARCH:-"i686"}
|
||||
PREFIX_DIR="$DIR/Local/$ARCH"
|
||||
BUILD_DIR="$DIR/Build/$ARCH"
|
||||
PREFIX_DIR="$DIR/Local/python"
|
||||
BUILD_DIR="$DIR/Build/python"
|
||||
TARBALLS_DIR="$DIR/Tarballs"
|
||||
|
||||
# shellcheck source=/dev/null
|
||||
@ -42,9 +41,9 @@ if [ -z "$MAKEJOBS" ]; then
|
||||
fi
|
||||
|
||||
mkdir -p "${PREFIX_DIR}"
|
||||
mkdir -p "${BUILD_DIR}/python"
|
||||
mkdir -p "${BUILD_DIR}"
|
||||
|
||||
pushd "${BUILD_DIR}/python"
|
||||
pushd "${BUILD_DIR}"
|
||||
"${TARBALLS_DIR}"/Python-"${PYTHON_VERSION}"/configure --prefix="${PREFIX_DIR}"
|
||||
make -j "${MAKEJOBS}"
|
||||
make install
|
||||
|
Loading…
Reference in New Issue
Block a user