Path: csiph.com!weretis.net!feeder8.news.weretis.net!news.szaf.org!fu-berlin.de!bofh.it!news.nic.it!robomod From: Philippe Cerfon Newsgroups: linux.debian.maint.python Subject: Re: can pip be made using local Debian packages for any dependencies Date: Fri, 17 Feb 2023 03:40:01 +0100 Message-ID: References: X-Mailbox-Line: From debian-python-request@lists.debian.org Fri Feb 17 02:30:11 2023 Old-Return-Path: X-Amavis-Spam-Status: No, score=-2.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, 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-pf1-x435.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -5.5 X-Gm-Message-State: AO0yUKUc5lCLHUI7eoFhX0+SkXvYwA1NXhqCyR+YbqU0J0wA806fjk4l Mi3tBHV4/z/FEF+yibRfHgs7mvhRazar8BA0ztflY53m X-Google-SMTP-Source: AK7set/Xxxg/CyVo3SlI9s76EE1HrKpGz+SXiSbthEQBcF4rvBiIg7T8fZiBdzWwEU0DQvpd9qxX2QaIYGGDCmshhQo= X-Received: by 2002:a05:6a00:1629:b0:5a8:bf8a:ce96 with SMTP id e9-20020a056a00162900b005a8bf8ace96mr51880pfc.1.1676600069665; Thu, 16 Feb 2023 18:14:29 -0800 (PST) MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Mailing-List: archive/latest/20830 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/CAN+za=Mq_=+1p-SLTFVhsR+BxXmq_Bj9TZMzRi2k4hxmMxi+Ng@mail.gmail.com Approved: robomod@news.nic.it Lines: 38 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Fri, 17 Feb 2023 03:14:18 +0100 X-Original-Message-ID: X-Original-References: <20230215163553.dky22eeiwdwdabnm@satie.tumbleweed.org.za> Xref: csiph.com linux.debian.maint.python:14931 On Wed, Feb 15, 2023 at 5:35 PM Stefano Rivera 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