gentoo/dev-python/virtualenvwrapper/files/virtualenvwrapper-4.8.4_p20230121-override-default-python-executable.patch
Alfred Wingate bd3945affb
dev-python/virtualenvwrapper: fix broken sed expression
* Previous change 0c64ab0 had a mistake get through and change wasnt
  applied. Lesson learned about double and triple checking regex...
* Instead patch with @@GENTOO_PYTHON_EXECUTABLE@@ and then sed replace
  with current python interpeter.

Signed-off-by: Alfred Wingate <parona@protonmail.com>
Closes: https://github.com/gentoo/gentoo/pull/32007
Signed-off-by: Sam James <sam@gentoo.org>
2023-07-24 02:44:27 +01:00

22 lines
905 B
Diff

https://github.com/parona-source/virtualenvwrapper/commit/9cb7bcab244c3e49d7b25b73e82566d0adce3282
From 9cb7bcab244c3e49d7b25b73e82566d0adce3282 Mon Sep 17 00:00:00 2001
From: Alfred Wingate <parona@protonmail.com>
Date: Sun, 23 Jul 2023 05:05:59 +0300
Subject: [PATCH] virtualenvwrapper.sh: Override default python executable
--- a/virtualenvwrapper.sh
+++ b/virtualenvwrapper.sh
@@ -47,7 +47,7 @@
# Locate the global Python where virtualenvwrapper is installed.
if [ "${VIRTUALENVWRAPPER_PYTHON:-}" = "" ]
then
- _virtualenvwrapper_python_executable="$(command -v python3)"
+ _virtualenvwrapper_python_executable="@@GENTOO_PYTHON_EXECUTABLE@@"
if [ -n "$_virtualenvwrapper_python_executable" ] && $_virtualenvwrapper_python_executable -m 'virtualenvwrapper.hook_loader' --help >/dev/null 2>&1
then
VIRTUALENVWRAPPER_PYTHON=$_virtualenvwrapper_python_executable
--
2.41.0