Skip to content

Commit

Permalink
point to correct python
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Sep 3, 2024
1 parent 5ebb840 commit 692aad8
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
25 changes: 25 additions & 0 deletions dockerbuild.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/sh
#
# Build a ppt wheel in a docker container.
#
if [ -n "$UID" ]
then
CHOWN=""
else
CHOWN="" #chown -R $UID dist build src/ppbt/_toolchain"
fi

export CHOWN

CMD="
apt-get update;
apt-get install -y gcc python3 \
python3-pip python3-venv build-essential patchelf
cd /src
python3 -m venv venv
venv/bin/pip install build wheel setuptools
venv/bin/python3 -m build
$CHOWN
"

docker run --rm -v $(pwd):/src debian:11 /bin/sh -c "$CMD"
5 changes: 3 additions & 2 deletions src/relenv_gdb/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def build_gdb(prefix):
relenv.common.extract_archive(str(src), archive_name)
dir_name = archive_name.split(".tar")[0]
os.environ.update(relenv.buildenv.buildenv(prefix))
os.environ["RELENV_PATH"] = str(prefix)
os.environ[
"CFLAGS"
] = f"{os.environ['CFLAGS']} -I{os.environ['RELENV_PATH']}/include/ncursesw"
Expand All @@ -67,8 +68,8 @@ def build_gdb(prefix):
f"--prefix={os.environ['RELENV_PATH']}/lib/python3.10/site-packages/relenv_gdb/gdb",
]
)
subprocess.run(["make"])
subprocess.run(["make", "install"])
subprocess.run(["make"], check=True)
subprocess.run(["make", "install"], check=True)

url = "https://ftp.gnu.org/gnu/gdb/gdb-13.2.tar.xz"
relenv.common.download_url(
Expand Down

0 comments on commit 692aad8

Please sign in to comment.