🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #843

Bug#1150894: dh-virtualenv: --setuptools fails with virtualenv >= 20 (arguments required: dest)

#843
From: Nico Della Torre
Date: Wed, 14 Oct 2026 13:50
48 lines
3198 bytes
Package: dh-virtualenv
Version: 1.3
Severity: normal

Dear Maintainer,

dh_virtualenv --setuptools makes the build fail with every virtualenv
in a supported release (20.17 in bookworm, 20.31 in trixie, 21.5 in
sid).

dh-virtualenv passes a bare --setuptools to virtualenv. That option
dates from virtualenv < 20, where it chose setuptools over distribute.
Since virtualenv 20 --setuptools takes the version of setuptools to
install, so it swallows the destination directory:

    $ cat debian/rules
    #!/usr/bin/make -f
    %:
    	dh $@ --with python-virtualenv --setuptools
    $ dpkg-buildpackage -us -uc -b
    [...]
    virtualenv: error: the following arguments are required: dest

The same happens with "virtualenv --setuptools /tmp/venv" directly.

Passing --setuptools=bundle instead works with virtualenv 20.17, 20.31
and 21.5, and installs the setuptools shipped with virtualenv. That is
also the useful meaning of the option today: since Python 3.12
virtualenv no longer installs setuptools by default.

The unit test checked the bare flag, so the failure was not noticed.
The --builtin-venv case was fixed separately in #1104696.

Nico Della Torre


-- System Information:
Debian Release: forky/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 7.2.9+deb14-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), LANGUAGE=it
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Technical Details
Message-ID: <NO7wK-5t0A-3@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.hispagatos.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.hispagatos.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Nico Della Torre <nicoz91@ubuntu.com>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1150894: dh-virtualenv: --setuptools fails with virtualenv >= 20 (arguments required: dest)
Date: Wed, 14 Oct 2026 15:50:02 +0200
Message-ID: <NO7wK-5t0A-3@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Wed Oct 14 13:41:10 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.651
Reply-To: Nico Della Torre <nicoz91@ubuntu.com>, 1150894@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: team+python@tracker.debian.org
X-Debian-Pr-Message: report 1150894
X-Debian-Pr-Package: dh-virtualenv
X-Debian-Pr-Source: dh-virtualenv
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Mailer: reportbug 13.2.0+nmu1
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1996764
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 48
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Wed, 14 Oct 2026 15:39:12 +0200
X-Original-Message-ID: <179198515230.519462.10190744523342376392.reportbug@ryzendeb.linuxlab>