Path: csiph.com!fu-berlin.de!bofh.it!news.nic.it!robomod From: Ian Norton Newsgroups: linux.debian.maint.python Subject: Re: can pip be made using local Debian packages for any dependencies Date: Wed, 15 Feb 2023 19:10:01 +0100 Message-ID: References: X-Original-To: Philippe Cerfon , Donald Stufft , Ian Norton , debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Wed Feb 15 18:08:16 2023 Old-Return-Path: X-Amavis-Spam-Status: No, score=-5.199 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=2, LDO_WHITELIST=-5, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no autolearn_force=no X-Policyd-Weight: using cached result; rate: -5.5 X-Gm-Message-State: AO0yUKXEyC0ztp/4WpSr+JfpkY0x7q6qd4NSON99vljDY8oWSV+ocIEY uTlPw7KvcZJnr39U3nEt1000kfoB9xdkTWFxSLXTV9jW X-Google-SMTP-Source: AK7set9jVMJmYnUWV595POh5jhMHiLO+o11H9kJ0z3Q3pLT8lm23Dg3I0wTejJloWf/xolcMabZHIQbOzDCoE8io85w= X-Received: by 2002:a05:6870:eca8:b0:16d:f7bc:9e55 with SMTP id eo40-20020a056870eca800b0016df7bc9e55mr384973oab.166.1676484470948; Wed, 15 Feb 2023 10:07:50 -0800 (PST) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000005cc82505f4c0f59f" X-Mailing-List: archive/latest/20823 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/CAGUnuBEM9PHo2ZMcFPcfqJeaJ1Jq9mfGSiaEEinLT90sTEM7Fg@mail.gmail.com Approved: robomod@news.nic.it Lines: 94 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Wed, 15 Feb 2023 18:07:39 +0000 X-Original-Message-ID: X-Original-References: <20230215163553.dky22eeiwdwdabnm@satie.tumbleweed.org.za> Xref: csiph.com linux.debian.maint.python:14924 --0000000000005cc82505f4c0f59f Content-Type: text/plain; charset="UTF-8" My suggestion to the pip folks was a plugin system and extension point for "install x" package that distros could provide implementations for On Wed, 15 Feb 2023, 16:35 Stefano Rivera, wrote: > Hi Philippe (2023.02.13_01:11:28_+0000) > > On Sun, Feb 12, 2023 at 7:31 PM Donald Stufft wrote: > > > > > > I'm pretty sure that most if not all debian packages already ship > > > the required information for pip to see them as installed, and if > > > they are installed and they satisfy the dependency constraints that > > > pip has for those projects, then they'll be used. > > Yeah, most packages should ship .egg-info/.dist-info. > > > Also: > > $ dpkg -l python3-setuptools > > ... > > ii python3-setuptools 66.1.1-1 all Python3 Distutils > Enhancements > > > > Yet when I do e.g.: > > $ pip install --editable . > > Defaulting to user installation because normal site-packages is not > writeable > > Obtaining file:///home/test/example > > Installing build dependencies ... error > > error: subprocess-exited-with-error > > You sure it isn't doing an isolated build? Try --no-build-isolation. > > SR > > -- > Stefano Rivera > http://tumbleweed.org.za/ > +1 415 683 3272 > --0000000000005cc82505f4c0f59f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
My suggestion to the pip folks was a plugin system and ex= tension point for "install x" package that distros could provide = implementations for

On Wed, 15 Feb 2023, 16:35 Stefano Rivera, <stefanor@debian.org> wrote:
Hi Philippe (2023.02.13_01:11:28_+0000)
> On Sun, Feb 12, 2023 at 7:31 PM Donald Stufft <donald@stufft.io&g= t; wrote:
> >
> > I'm pretty sure that most if not all debian packages already = ship
> > the required information for pip to see them as installed, and if=
> > they are installed and they satisfy the dependency constraints th= at
> > pip has for those projects, then they'll be used.

Yeah, most packages should ship .egg-info/.dist-info.

> Also:
> $ dpkg -l python3-setuptools
> ...
> ii=C2=A0 python3-setuptools 66.1.1-1=C2=A0 =C2=A0 =C2=A0all=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 Python3 Distutils Enhancements
>
> Yet when I do e.g.:
> $ pip install --editable .
> Defaulting to user installation because normal site-packages is not wr= iteable
> Obtaining file:///home/test/example
>=C2=A0 =C2=A0Installing build dependencies ... error
>=C2=A0 =C2=A0error: subprocess-exited-with-error

You sure it isn't doing an isolated build? Try --no-build-isolation.
SR

--
Stefano Rivera
=C2=A0 http://tumbleweed.org.za/
=C2=A0 +1 415 683 3272
--0000000000005cc82505f4c0f59f--