Fix python virtual environment support.

This works with python 3.9, 3.10, 3.11 and 3.12 on MacOS.
This commit is contained in:
Doncho Gunchev 2024-07-15 10:54:24 +03:00
parent b3f0f66356
commit 6271df868c
No known key found for this signature in database
GPG key ID: D3FF0619433A66E2
4 changed files with 14 additions and 10 deletions

View file

@ -11,11 +11,12 @@ help:
@echo "▀▀▀▀▀▀"
@echo
@echo "Available targets:"
@echo " dist: create source distribution package in dist/"
@echo " rpm: create an RPM package"
@echo " changelog: Add a changelog entry to gwebu-profile.spec.in"
@echo " dist: Create source distribution package in dist/."
@echo " rpm: Create an RPM package."
@echo " podman_rpm Create an RPM package using podman on MacOS."
@echo " changelog: Add a changelog entry to gwebu-profile.spec.in."
@echo
@echo " clean: clean all generated files"
@echo " clean: Clean all generated files."
@echo
@echo "Version $(ver), rpm_ver=$(rpm_ver), rpm_rev=$(rpm_rev)."
.PHONY: help
@ -50,10 +51,9 @@ clean:
.PHONY: podman_rpm
podman_rpm:
podman_rpm: dist
podman buildx build -t podman_rpm_build -f Dockerfile-build . # --platform linux/amd64
# Extract the RPMs from the container to ./dist/ locally.
if ! test -d dist; then mkdir dist; fi
podman run --rm -d --name=build localhost/podman_rpm_build /usr/bin/bash -c "trap : TERM INT; sleep infinity & wait"
podman cp build:/tmp/RPMS/. ./dist/
podman stop build