[11:19:39] <Alistair42> Hey, I'm looking for a bit of pip support. My company is using a custom made pypi and it's playing up with pip due to the 'Cache-Control: max-age=0' HTTP header that pip uses when fetching packages. Assuming I have no control over the pypi application, is there a client-side option or alternative to avoid using this HTTP header with pip?
[11:33:07] <lazka> Has anyone seen this before: `can't find '__main__' module in '/home/me/src/salsa/env/share/python-wheels/pep517-0.7.0-py2.py3-none-any.whl/pep517/_in_process.py'` ?
[11:33:50] <lazka> "pip install pygobject" has started to fail this way. started this week I think. If anyone can confirm maybe or has an idea.
[11:37:32] <lazka> here is the full trace: https://bpaste.net/raw/JKAA
[11:41:29] <lazka> ok, removing the pyproject.toml makes the build work again, so I guess a pip regression
[11:51:49] <lazka> I've filed a bug: https://github.com/pypa/pip/issues/7946
[11:57:45] <toad_polo> I think that's due to Debian being Debian.
[11:58:07] <toad_polo> Install the latest pip from PyPI and it will fix your problem.
[12:09:38] <lazka> toad_polo, you might be right that this is Debian/Ubuntu specific as I can't reproduce on Arch. But I use the latest pip/setuptools on Debian/Ubuntu
[12:10:28] <lazka> I've added a minimal (two line) reproducer to the bug report btw
[12:10:58] <toad_polo> lazka: It needs to be reported to Debian.
[12:11:20] <toad_polo> They fuck with packages as part of their packaging.
[12:13:53] <toad_polo> Using virtualenv will install the latest PyPI pip, which is why it fixes it.
[12:15:13] <lazka> toad_polo, you are right, I assumed "-U" would pull in the pypi version but Debian (for once) ships the latest, so I needed "--force-reinstall"
[12:16:01] <lazka> I'll report a Debian bug, thanks toad_polo, andr_!
[12:22:03] <toad_polo> lazka: Thanks for the report!
[18:25:44] <lazka> so the conclusion of my debian pip problems earlier today: debian installs all vendored pip dependencies as wheels into venvs and pep517 doesn't support being run from a wheel
[18:37:12] <toad_polo> lazka: Is there an issue report there?
[18:37:21] <toad_polo> I think we may have known that, but it's definitely a debian issue.
[18:40:18] <toad_polo> pradyunsg: This probably can be closed: https://github.com/pypa/pip/issues/7874
[18:40:28] <toad_polo> It's the debian issue, but there's nothing pip can do about it.
[18:40:47] <toad_polo> Looks like this is the upstream issue: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=955414
[18:40:49] <lazka> toad_polo, yes, this is tracked in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=955414 and https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=954256
[18:40:55] <lazka> I just wanted to give a summary here
[18:42:23] <toad_polo> lazka: Thanks for reporting that upstream, and also for putting in the plug for "stop fucking with the packages" :P
[18:42:45] <toad_polo> It's infuriating that they do this for no reason.
[18:43:19] <toad_polo> I can't imagine a time when this has solved a problem, and it has clearly caused many problems - almost all of which fall on the upstream pip maintainers, who just think "pip is broken".
[18:43:45] <toad_polo> Er, rather, who get reports from users who just think "pip is broken" - understandably so.
[18:43:47] <lazka> ;) I'm a bit worried that it was to obvious
[18:44:41] <lazka> I have a package in Debian that vendors 2 Python libraries, luckily nobody has noticed yet :D
[18:45:21] <toad_polo> Those messages may have come out out of order. Matrix is being slow and weird, as usual.
[18:47:31] <lazka> and on the topic of debian ranting, it has started to split away distutils into its own package so it's no longer installed by default... and I get the bug reports about that..
[18:54:32] <toad_polo> I can imagine why. It doesn't seem to offer any benefits over Arch Linux.
[18:55:25] <toad_polo> People complain about Arch's instability, but Arch is so much more stable and reliable than Debian was for me, with the minor cost of just... keeping it up to date.