[rtems-central commit] Makefile: Create env/bin/python3-config

Sebastian Huber sebh at rtems.org
Tue Nov 21 13:35:40 UTC 2023


Module:    rtems-central
Branch:    master
Commit:    3ae44e02ef4aae4ce06aa4b64015f943ef91628c
Changeset: http://git.rtems.org/rtems-central/commit/?id=3ae44e02ef4aae4ce06aa4b64015f943ef91628c

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Nov 21 11:13:15 2023 +0100

Makefile: Create env/bin/python3-config

This is a workaround to let the RSB build GDB in a virtual Python
environment.

---

 Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Makefile b/Makefile
index b4e97fb2..6627d317 100644
--- a/Makefile
+++ b/Makefile
@@ -27,5 +27,8 @@ coverage-report:
 .PHONY: env
 
 env:
+	test -z "$$VIRTUAL_ENV"
 	python3 -m venv env
 	. env/bin/activate && pip install --upgrade pip && pip install -r requirements.txt
+	echo -e "#!/bin/sh\n$$(which python3-config) "'$$@' > env/bin/python3-config
+	chmod +x env/bin/python3-config



More information about the vc mailing list