diff --git a/README.md b/README.md index a66e721..50ebd9a 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -**P**ortable **P**ython **T**oolchain +**P**ortable **P**ython **B**uild **T**oolchain diff --git a/src/ppt/__init__.py b/src/ppbt/__init__.py similarity index 79% rename from src/ppt/__init__.py rename to src/ppbt/__init__.py index 29834ff..6a3f7e9 100644 --- a/src/ppt/__init__.py +++ b/src/ppbt/__init__.py @@ -1,7 +1,7 @@ # Copyright 2024 Broadcom Corporation # SPDX-License-Identifier: Apache-2.0 """ -Portable Python Toolchains. +Portable Python Build Toolchains. """ from .common import environ diff --git a/src/ppt/_config/aarch64/aarch64-linux-gnu-ct-ng.config b/src/ppbt/_config/aarch64/aarch64-linux-gnu-ct-ng.config similarity index 100% rename from src/ppt/_config/aarch64/aarch64-linux-gnu-ct-ng.config rename to src/ppbt/_config/aarch64/aarch64-linux-gnu-ct-ng.config diff --git a/src/ppt/_config/aarch64/x86_64-linux-gnu-ct-ng.config b/src/ppbt/_config/aarch64/x86_64-linux-gnu-ct-ng.config similarity index 100% rename from src/ppt/_config/aarch64/x86_64-linux-gnu-ct-ng.config rename to src/ppbt/_config/aarch64/x86_64-linux-gnu-ct-ng.config diff --git a/src/ppt/_config/x86_64/aarch64-linux-gnu-ct-ng.config b/src/ppbt/_config/x86_64/aarch64-linux-gnu-ct-ng.config similarity index 100% rename from src/ppt/_config/x86_64/aarch64-linux-gnu-ct-ng.config rename to src/ppbt/_config/x86_64/aarch64-linux-gnu-ct-ng.config diff --git a/src/ppt/_config/x86_64/x86_64-linux-gnu-ct-ng.config b/src/ppbt/_config/x86_64/x86_64-linux-gnu-ct-ng.config similarity index 100% rename from src/ppt/_config/x86_64/x86_64-linux-gnu-ct-ng.config rename to src/ppbt/_config/x86_64/x86_64-linux-gnu-ct-ng.config diff --git a/src/ppt/build.py b/src/ppbt/build.py similarity index 97% rename from src/ppt/build.py rename to src/ppbt/build.py index 5b116c2..0b68a78 100644 --- a/src/ppt/build.py +++ b/src/ppbt/build.py @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 # """ -Build a ppt wheel which includes a toolchain archive. +Build a ppbt wheel which includes a toolchain archive. """ import base64 import csv @@ -198,7 +198,7 @@ def runcmd(*args, **kwargs): return proc -def build_ppt(branch=None, use_tempdir=True): +def build_ppbt(branch=None, use_tempdir=True): """Build a toolchain and include it in the wheel. - Downloads and installs crosstool-ng for building a toolchain. @@ -240,7 +240,7 @@ def build_ppt(branch=None, use_tempdir=True): arch = build_arch() machine = platform.machine() - toolchain = cwd / "src" / "ppt" / "_toolchain" + toolchain = cwd / "src" / "ppbt" / "_toolchain" print(f"toolchain: {toolchain}") @@ -255,7 +255,7 @@ def build_ppt(branch=None, use_tempdir=True): config = ( root / "src" - / "ppt" + / "ppbt" / "_config" / machine / "{}-ct-ng.config".format(triplet) @@ -328,7 +328,7 @@ def build_ppt(branch=None, use_tempdir=True): .rstrip(b"=") .decode() ) - hashpath = str(pathlib.Path("ppt") / "_toolchain" / relpath) + hashpath = str(pathlib.Path("ppbt") / "_toolchain" / relpath) rwriter.writerow([hashpath, f"sha256={hsh}", len(data)]) try: fp.add(relpath, relpath, recursive=False) @@ -346,5 +346,5 @@ def build_ppt(branch=None, use_tempdir=True): def build_wheel(wheel_directory, metadata_directory=None, config_settings=None): """PEP 517 wheel creation hook.""" - build_ppt() + build_ppbt() return _build_wheel(wheel_directory, metadata_directory, config_settings) diff --git a/src/ppt/common.py b/src/ppbt/common.py similarity index 95% rename from src/ppt/common.py rename to src/ppbt/common.py index fcd6f69..4342f34 100644 --- a/src/ppt/common.py +++ b/src/ppbt/common.py @@ -18,7 +18,7 @@ toolchain_root = pathlib.Path(__file__).parent / "_toolchain" -distinfo = pathlib.Path(__file__).resolve().parent.parent / "ppt-0.1.0.dist-info" +distinfo = pathlib.Path(__file__).resolve().parent.parent / "ppbt-0.1.0.dist-info" log = logging.getLogger(__name__)