delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/11/10/09:35:39

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DA86D3864821
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1699626936;
bh=Ozt8K92Opt3VPa61YYaiIb9zD8HxBTWuPl61QIlDqvI=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=laWco0b18TrfVE7Wvq8wJZ+lJGTzYZ7fnbjb8kHQ7E8crAPtMm2wlB4TSnvwbzWSf
PveCsb+QQ6motQCYcYQzUyhVGutGZSJVv968ubx991MfqDZSwKsUf5mc6rl9VHN5QB
NOV5OfqRy875Uc4vFszX8U7JIxzLQ8oPxuhLbyvs=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DD3C23858C36
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DD3C23858C36
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699626921; cv=none;
b=ca2JHyZmfCcRBVU9gaZ44Dys7PkgS4ntYDKe/ZF/cnnxO5Sz8vhbcr7yYcEyQsv+LiFdt5v1Qkcr2KKSfEawIyTooTHpsMYBoO24kvmB+jZ/z0jhU5Crf+0Ywg+pEL5mPRDTM375zlA3QOtxen1wA32De57lMRypXSMNEdKGoyY=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1699626921; c=relaxed/simple;
bh=3QRGVMUjQIcDpLlP3yuB6VmmH9gIzbqQ3tf9wBrATGw=;
h=Message-ID:Date:MIME-Version:Subject:To:From;
b=b+pH6evEs1nMSXrvQfbCLNiDkz/Ms9r1FRC28FpzQciyRfar5sZpkc6tyVeztBUz1Ty/7T14eb0bzi5Rgw3H7AwIjb4Aj3YhA/nWUcAh/OxCDqF7D0+ZbrY+wPTIPcPr3JNZNi90KPs+a0zuopCLYxSuHkLPSVKSAJ0d4CxbkUg=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-SNCR-Rigid: 64D17367098169BA
X-Originating-IP: [81.153.98.243]
X-OWM-Source-IP: 81.153.98.243 (GB)
X-OWM-Env-Sender: jon DOT turney AT dronecode DOT org DOT uk
X-VadeSecure-score: verdict=clean score=0/300, class=clean
X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgedvkedruddvfedgieegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuueftkffvkffujffvgffngfevqffopdfqfgfvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeflohhnucfvuhhrnhgvhicuoehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkqeenucggtffrrghtthgvrhhnpedvvdeuheffuedvtdfhveekieefvdfhfeetffdvudehkeeigeetvdetjeetieeileenucfkphepkedurdduheefrdelkedrvdegfeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopegludelvddrudeikedruddruddtjegnpdhinhgvthepkedurdduheefrdelkedrvdegfedpmhgrihhlfhhrohhmpehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkpdhnsggprhgtphhtthhopedvpdhrtghpthhtoheprggurghmseguihhnfihoohguihgvrdhorhhgpdhrtghpthhtoheptgihghifihhnsegthihgfihinhdrtghomhdprhgvvhfkrfephhhoshhtkeduqdduheefqdelkedqvdegfedrrhgrnhhgvgekuddqudehfedrsghttggvnhhtrhgrlhhplhhushdrtghomhdprghuthhhpghushgvrhepjhhonhhtuhhrnhgvhiessghtihhnthgvrhhnvghtrdgtohhmpdhgvghokffr
pefiuedpoffvtefjohhstheprhgvqdhprhguqdhrghhouhhtqddttdeg
X-RazorGate-Vade-Verdict: clean 0
X-RazorGate-Vade-Classification: clean
Message-ID: <45e21c6e-98a4-443b-bfbd-d3475c3452c0@dronecode.org.uk>
Date: Fri, 10 Nov 2023 14:35:16 +0000
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: Missing Python dependencies for venv standard library module
To: Adam Dinwoodie <adam AT dinwoodie DOT org>,
The Cygwin Mailing List <cygwin AT cygwin DOT com>
References: <20231108161743 DOT fhr7sum3k445ag67 AT lucy DOT dinwoodie DOT org>
In-Reply-To: <20231108161743.fhr7sum3k445ag67@lucy.dinwoodie.org>
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL,
KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL,
SPF_HELO_PASS, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Jon Turney via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Jon Turney <jon DOT turney AT dronecode DOT org DOT uk>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

On 08/11/2023 16:17, Adam Dinwoodie via Cygwin wrote:
> Hullo,
> 
> It looks like the python39 package is missing dependencies on
> python-setuptools-wheel and python-pip-wheel.  I've not checked, but I
> suspect earlier Python versions are missing the same dependencies.
> Without these, the Python built-in venv module doesn't work:
> 
>      $ python3 -m venv v
>      Error: Command '['/home/WDAGUtilityAccount/v/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.
> 
> Compare when the both python-setuptools-wheel and python-pip-wheel are
> installed:
> 
>      $ python3 -m venv v
>      $ . v/bin/activate
>      (v) $ python3 -c 'import sys; print(sys.path)'
>      ['', '/usr/lib/python39.zip', '/usr/lib/python3.9', '/usr/lib/python3.9/lib-dynload', '/home/WDAGUtilityAccount/v/lib/python3.9/site-packages']
>      (v) $ deactivate
> 
> I've attached cygcheck files from sandbox VMs for both the broken and
> working cases.  I'm not sure what the correct fix is here -- possibly
> adding dependencies, possibly changing how things are packaged -- but
> I'd expect Python standard library modules to either work or to give an
> error message that makes it clearer what additional packages are
> required to make them work.

Yeah. I have a vague recollection there was some other case recently 
where one these being missing was causing some confusion.

I think the easiest way to convince me that this is a historical 
oversight would be to look how other distros do this: If they have 
python depend on python-setuptools and python-wheel, then we probably 
should as well...


-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019