Skip to content

Commit

Permalink
Rename everything to ppbt for pypi project
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Sep 2, 2024
1 parent 975d77b commit e4b831d
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
**P**ortable **P**ython **T**oolchain
**P**ortable **P**ython **B**uild **T**oolchain
2 changes: 1 addition & 1 deletion src/ppt/__init__.py → src/ppbt/__init__.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
12 changes: 6 additions & 6 deletions src/ppt/build.py → src/ppbt/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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}")

Expand All @@ -255,7 +255,7 @@ def build_ppt(branch=None, use_tempdir=True):
config = (
root
/ "src"
/ "ppt"
/ "ppbt"
/ "_config"
/ machine
/ "{}-ct-ng.config".format(triplet)
Expand Down Expand Up @@ -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)
Expand All @@ -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)
2 changes: 1 addition & 1 deletion src/ppt/common.py → src/ppbt/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)

Expand Down

0 comments on commit e4b831d

Please sign in to comment.