Path: csiph.com!1.us.feeder.erje.net!2.eu.feeder.erje.net!feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!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: Thu, 16 Feb 2023 02:20:01 +0100 Message-ID: References: X-Mailbox-Line: From debian-python-request@lists.debian.org Thu Feb 16 01:13:32 2023 Old-Return-Path: X-Amavis-Spam-Status: No, score=-5.099 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, FOURLA=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: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .gmail. - helo: .mail-oi1-x236.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -5.5 X-Gm-Message-State: AO0yUKXo1p9buqvDzJX28Z5jJeqXw0lh+1dTqxkdtSCfitJQLSf+CziP zDHjqwXljfz5RKY2xWSKuVFu2LfEQ3vOyAWD4DsZNPRQ X-Google-SMTP-Source: AK7set/SRgN4/ROpTScqGQuKnrvJtHeODyzn6FRuPmMA1gYfCvxn8QhPtErC48uSlKavgmn+Oy+6gn5mXcHdy9lSJB8= X-Received: by 2002:a05:6808:158a:b0:37b:5923:bbc4 with SMTP id t10-20020a056808158a00b0037b5923bbc4mr42330oiw.166.1676509980087; Wed, 15 Feb 2023 17:13:00 -0800 (PST) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000d359d205f4c6e5d6" X-Mailing-List: archive/latest/20826 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/CAGUnuBGScCYGFCoBdYf_qoWpdxjPZduN2YC1YvNPzTs+qh5Cqg@mail.gmail.com Approved: robomod@news.nic.it Lines: 52 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: debian-python@lists.debian.org X-Original-Date: Thu, 16 Feb 2023 01:12:49 +0000 X-Original-Message-ID: X-Original-References: <20230215163553.dky22eeiwdwdabnm@satie.tumbleweed.org.za> <20230215220038.spc62azcb62rila2@yuggoth.org> Xref: csiph.com linux.debian.maint.python:14927 --000000000000d359d205f4c6e5d6 Content-Type: text/plain; charset="UTF-8" I agree that is "easiest" but what I was after was the ability to restrict myself to the curated and signed packages from debian, pypi is just as bad as old CPAN when it comes to packages disappearing or being broken or depending on totally random versions On Wed, 15 Feb 2023, 22:01 Jeremy Stanley, wrote: > As someone who does Python software development on Debian constantly > for their $dayjob, my best advice is to just install things from > PyPI into and run them from venvs/virtualenvs. The default "--user" > install mode pip offers is fragile and leaves you with potential > conflicts anyway if you need different versions of dependencies for > different things. > > To your original question, if you really want to use some > Debian-packaged libraries mixed with things installed from source or > from PyPI, make your venv with the --system-site-packages option. > -- > Jeremy Stanley > --000000000000d359d205f4c6e5d6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I agree that is "easiest" but what I was after = was the ability to restrict myself to the curated and signed packages from = debian, pypi is just as bad as old CPAN when it comes to packages disappear= ing or being broken or depending on totally random versions

On Wed, 15 Feb 2= 023, 22:01 Jeremy Stanley, <fungi@y= uggoth.org> wrote:
As someo= ne who does Python software development on Debian constantly
for their $dayjob, my best advice is to just install things from
PyPI into and run them from venvs/virtualenvs. The default "--user&quo= t;
install mode pip offers is fragile and leaves you with potential
conflicts anyway if you need different versions of dependencies for
different things.

To your original question, if you really want to use some
Debian-packaged libraries mixed with things installed from source or
from PyPI, make your venv with the --system-site-packages option.
--
Jeremy Stanley
--000000000000d359d205f4c6e5d6--