So, here's a weird one: a) The default values for python -m venv and import venv; venv.create() are not the same. The former uses symlinks=True, but the latter, which is used by batou/appenv, has symlinks=False). b) At least with my brew install python, the variant with symlinks=False has recently(?) stopped working:
I don't understand neither (a) nor (b), and the closest related bug I could find was https://github.com/python/cpython/issues/82886 (but that talks about Apple's Python, not Homebrew), so my proposal would be this:
diff --git a/batou b/batou
index e509e153..691d9cca 100755
--- a/batou
+++ b/batou
@@ -69,7 +69,7 @@ def ensure_venv(target):
version = sys.version.split()[0]
python_maj_min = ".".join(str(x) for x in sys.version_info[:2])
print("Creating venv ...")
- venv.create(target, with_pip=False)
+ venv.create(target, with_pip=False, symlinks=True)
So, here's a weird one: a) The default values for
python -m venv
andimport venv; venv.create()
are not the same. The former uses symlinks=True, but the latter, which is used by batou/appenv, has symlinks=False). b) At least with mybrew install python
, the variant withsymlinks=False
has recently(?) stopped working:I don't understand neither (a) nor (b), and the closest related bug I could find was https://github.com/python/cpython/issues/82886 (but that talks about Apple's Python, not Homebrew), so my proposal would be this: