From 5d0b101c48bf2c79546de6da9a5de5f8d910282e Mon Sep 17 00:00:00 2001 From: Anderson Bravalheri Date: Tue, 9 Mar 2021 15:40:53 +0000 Subject: [PATCH] Specify virtualenv as extra dependency for build in tox.ini `build` seems to rely by default in the stdlib's implementation of `venv` and unfortunately for a specific combination of Windows + conda env + virtualenv (as used by tox), that might be problematic as identified in https://github.com/pyscaffold/pyscaffoldext-markdown/issues/10. According to the discussion in https://github.com/pypa/build/pull/253, specifying `virtualenv` as an extra dependency of `build` seems to be a good workaround. Moreover I would expect some kind speed improvements (virtualenv is reported to be faster than venv). --- src/pyscaffold/templates/tox_ini.template | 2 +- tox.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pyscaffold/templates/tox_ini.template b/src/pyscaffold/templates/tox_ini.template index 1e18851ff..e4be0200b 100644 --- a/src/pyscaffold/templates/tox_ini.template +++ b/src/pyscaffold/templates/tox_ini.template @@ -30,7 +30,7 @@ description = skip_install = True changedir = {toxinidir} deps = - build: build + build: build[virtualenv] commands = clean: python -c 'from shutil import rmtree; rmtree("build", True); rmtree("dist", True)' build: python -m build . diff --git a/tox.ini b/tox.ini index 55ba0578a..e37a7b6a7 100644 --- a/tox.ini +++ b/tox.ini @@ -52,7 +52,7 @@ description = skip_install = True changedir = {toxinidir} deps = - build: build + build: build[virtualenv] commands = clean: python -c 'from shutil import rmtree; rmtree("build", True); rmtree("dist", True)' build: python -m build .