Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #14931

Re: can pip be made using local Debian packages for any dependencies

From Philippe Cerfon <philcerf@gmail.com>
Newsgroups linux.debian.maint.python
Subject Re: can pip be made using local Debian packages for any dependencies
Date 2023-02-17 03:40 +0100
Message-ID <FZYPf-6qXx-1@gated-at.bofh.it> (permalink)
References (2 earlier) <FYfKx-5hGe-1@gated-at.bofh.it> <FYfKx-5hGe-3@gated-at.bofh.it> <FYpqy-5nAX-11@gated-at.bofh.it> <FYvPj-5rC5-7@gated-at.bofh.it> <FZsZ4-66P7-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Feb 15, 2023 at 5:35 PM Stefano Rivera <stefanor@debian.org> wrote:
> You sure it isn't doing an isolated build? Try --no-build-isolation.

I absolutely am not :D (I'm really not a Python expert... or about
it's various build systems, pip, etc.).

And that seems to have done the trick.
And it further seems that there's a counter part with which I can do
python3 -m build
namely: --no-isolation

Am I right that these options simply mean that it doesn't use a venv
for the build, thereby "seeing" Debian's already installed packages
(or better said the eggs/wheels/whatsoever from them)?


Just for my confirmation:
If my goal is to simply never ever have pip/build/etc. download
anything from some location, but only use local sources (e.g. stuff
from Debian package) is the following safe?

I set /etc/pip.conf to:
[global]
no-index = true
index-url = https://localhost/
cert = /usr/local/share/ca-certificates/dummy.crt

(guess in principle the no-index should already be enough)

It seems to work (in the sense of blocking downloads) for both, pip
and python -m build ... but I don't quite understand why it also works
for build (thought that was independent of pip).


Awesome! Thanks guys :-)


Philippe

Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

can pip be made using local Debian packages for any dependencies Philippe Cerfon <philcerf@gmail.com> - 2023-02-12 06:00 +0100
  Re: can pip be made using local Debian packages for any dependencies Ian Norton <inorton@gmail.com> - 2023-02-12 09:10 +0100
    Re: can pip be made using local Debian packages for any dependencies Ian Norton <inorton@gmail.com> - 2023-02-12 09:20 +0100
      Re: can pip be made using local Debian packages for any dependencies Ian Norton <inorton@gmail.com> - 2023-02-12 09:20 +0100
        Re: can pip be made using local Debian packages for any dependencies Ian Norton <inorton@gmail.com> - 2023-02-12 09:30 +0100
        Re: can pip be made using local Debian packages for any dependencies "Donald Stufft" <donald@stufft.io> - 2023-02-12 19:40 +0100
          Re: can pip be made using local Debian packages for any dependencies Philippe Cerfon <philcerf@gmail.com> - 2023-02-13 02:30 +0100
            Re: can pip be made using local Debian packages for any dependencies Stefano Rivera <stefanor@debian.org> - 2023-02-15 17:40 +0100
              Re: can pip be made using local Debian packages for any dependencies Ian Norton <inorton@gmail.com> - 2023-02-15 19:10 +0100
                Re: can pip be made using local Debian packages for any dependencies Stefano Rivera <stefanor@debian.org> - 2023-02-15 21:20 +0100
                Re: can pip be made using local Debian packages for any dependencies Philippe Cerfon <philcerf@gmail.com> - 2023-02-17 03:40 +0100
                Re: can pip be made using local Debian packages for any dependencies Stefano Rivera <stefanor@debian.org> - 2023-02-17 15:40 +0100
                Re: can pip be made using local Debian packages for any dependencies Philippe Cerfon <philcerf@gmail.com> - 2023-02-18 06:20 +0100
                Re: can pip be made using local Debian packages for any dependencies Andrey Rakhmatullin <wrar@wrar.name> - 2023-02-17 19:30 +0100
              Re: can pip be made using local Debian packages for any dependencies Jeremy Stanley <fungi@yuggoth.org> - 2023-02-15 23:10 +0100
                Re: can pip be made using local Debian packages for any dependencies Ian Norton <inorton@gmail.com> - 2023-02-16 02:20 +0100
                Re: can pip be made using local Debian packages for any dependencies Andrey Rakhmatullin <wrar@wrar.name> - 2023-02-16 10:20 +0100
                Re: can pip be made using local Debian packages for any dependencies Jeremy Stanley <fungi@yuggoth.org> - 2023-02-16 14:50 +0100
              Re: can pip be made using local Debian packages for any dependencies Philippe Cerfon <philcerf@gmail.com> - 2023-02-17 03:40 +0100
    Re: can pip be made using local Debian packages for any dependencies Philippe Cerfon <philcerf@gmail.com> - 2023-02-13 02:20 +0100

csiph-web