]> git.proxmox.com Git - mirror_qemu.git/commit
mkvenv: add console script entry point generation
authorJohn Snow <jsnow@redhat.com>
Tue, 16 May 2023 10:08:11 +0000 (12:08 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 18 May 2023 06:53:51 +0000 (08:53 +0200)
commit928348949d1d04f67715fa7125e7e1fa3ff40f7c
tree2d7ffcaddb415abcf3b9a1ecfc8f17528bfa9fbe
parent4695a22e9adb0c9a96465109a17da10c17cf2a67
mkvenv: add console script entry point generation

When creating a virtual environment that inherits system packages,
script entry points (like "meson", "sphinx-build", etc) are not
re-generated with the correct shebang. When you are *inside* of the
venv, this is not a problem, but if you are *outside* of it, you will
not have a script that engages the virtual environment appropriately.

Add a mechanism that generates new entry points for pre-existing
packages so that we can use these scripts to run "meson",
"sphinx-build", "pip", unambiguously inside the venv.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
Message-Id: <20230511035435.734312-9-jsnow@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
python/scripts/mkvenv.py
python/setup.cfg