[15:11:37] <ronny> the twiested plugin namespace is one of the twisted packaging messed
[15:12:01] <tomprince> Plugins predate any alternative.
[15:14:03] <ronny> tomprince: and they will never be fixed
[15:17:40] <tomprince> It isn't clear that it needs to be.
[15:19:11] <StGambrinus> Anyone know if there's a way to get pip to actually ignore SSL errors? I've tried --trusted-host pypi.python.org install -i http://pypi.python.org/simple --allow-unverified and it still dies with an SSL verification failure.
[15:20:20] <ronny> StGambrinus: how the hell do you get ssl issues from pypi ?
[15:20:54] <StGambrinus> My guess: I'm stuck on OS X
[15:22:15] <StGambrinus> Chrome says green light, identity verified Python Software Foundation [US]
[15:22:54] <skay> hi all, I'm having trouble installing something from pypi with pip. the project has the versions I'm looking for, but pip doesn't find them. http://paste.ubuntu.com/10516055/
[15:23:09] <ronny> StGambrinus: then unfortunately im out of ideas
[15:23:14] <skay> I have a workaround, but I want to understand what is going on. if the project needs to update how they upload to pypi I'd like to fix it
[15:23:59] <StGambrinus> ronny: can't really complain I guess - so am I
[15:24:25] <ronny> skay: they no longer upload actual tarballs, thats why modern pip wont find it
[15:24:44] <ronny> skay: make tem upload modern versions or user --allow-external
[15:25:05] <skay> ronny: when I tried --allow-external (scroll to bottom of pastebin) pip didn't seem to honor it
[15:25:20] <skay> ronny: and suggested that I use --allow-external
[15:25:39] <ronny> skay: their download link is also broken and no longer shows certain versions
[15:25:56] <ronny> skay: bascially they completely screwed up
[15:26:15] <skay> ronny: heh. okay, I'm a packaging newbie, but I'll try to figure it out and make a mr
[15:26:24] <StGambrinus> ronny: here's the exact blow-by-blow (less the stack trace) in case it inspires anything: https://dpaste.de/1KU0
[15:27:38] <ronny> skay: basically they are supposed to either supply correct download links (which they dont) or supply tarballs hosted on pypi (which they also dont)
[15:27:54] <ronny> skay: to work the best way, they should put tarballs onto pypi
[15:28:20] <ronny> but canonical has a history of not following sane standards for being what they are ^^
[15:31:12] <skay> ronny: I'm passing along the info to the launchpad team
[15:31:57] <skay> ronny: thanks for the quick help, I wasn't sure what was going on.
[15:32:55] <skay> ronny: I might open an issue with pip to see if there is another error message that could happen when a project has broken download links. the message that suggests using --allow-external when the invokation has allow-external already isn't the best message
[15:33:24] <ronny> yes, that could use improvement
[15:49:36] <nanonyme> The nicer way is to ship the CA and use --cert to point to it
[15:49:55] <StGambrinus> I'm using --trusted-host and --allow-unverified and using http
[15:51:16] <StGambrinus> nanonyme: yes, that's obviously the correct solution, though it will take some googling
[16:10:50] <StGambrinus> Should using --cert result in "No distributions at all"? https://dpaste.de/6bTo
[16:26:31] <StGambrinus> yeah, --cert doesn't work either (even after converting the crt file I get from digicert to pem). It's still refusing. I give up.
[17:13:03] <linovia> since when did it check it is in its latest version ?
[17:14:31] <linovia> it's a very terrible thing to do because the check won't be against the private pypi which takes a lot of time when the internet access is restricted
[17:16:24] <ronny> linovia: can you report a bug that the version check des not honor the index server?
[19:15:09] <dstufft> not hitting a private index was a conscious choice, we tried to limit the negative effects of not being able to hit PyPI by not allowing it to retry, making it fail silently, and giving it a short timeout, and allow it to be disabled. but the idea is that we want people to be aware there is a newer version available, regardless of if they've uploaded it to their private index or not
[19:18:26] <linovia> dstufft: the thing is, at my client's office, they don't have the dns resolution which means any access to pypi times out after ~30 s :(
[19:19:06] <dstufft> linovia: hmm, I guess we need to handle a DNS timeout better
[19:19:07] <linovia> (They are using a proxy to access outside)
[19:26:43] <nanonyme> dstufft, btw, pip gives *very* poor output on errors without verbose mode
[19:27:06] <dstufft> nanonyme: what kind of errors
[19:27:29] <nanonyme> Eg that classic error where you try to connect to PyPI and SSL handshake fails because of too old SSL library
[19:27:46] <nanonyme> pip just says no distributions found and you don't get a clue of what goes wrong without --verbose
[19:27:58] <mitsuhiko> why does install --download need to build sometimes?
[19:28:14] <dstufft> PEP 470 makes it possible for us to hard fail on broken links
[19:28:24] <dstufft> right now we don't have good indication if a link should or should not br broken
[19:28:27] <mitsuhiko> i have the problem that i use it to download tarballs and wheels, but apparently i need to be running that as the user that installed pip which i am intentionally not :-/
[19:28:54] <nanonyme> dstufft, imo it should loudly fail if index server can't be connected to at all
[19:29:08] <dstufft> mitsuhiko: it shouldn't, but it does run setup.py egg_info which means it could be doing anything in there (particularly setup_requires)
[19:30:19] <nanonyme> dstufft, ie even if one of the index servers can be contacted to for downloading the content, it's still in most cases useful to know if some others are unreachable
[19:38:19] <dstufft> well not better than vendoring (imo), but better than just unvendoring
[19:38:58] <dstufft> they generate .whl files for all of pip's deps, and they place them in /usr/share, and their pip is modified so that ti places those first on sys.path
[19:39:13] <dstufft> so it doesn't matter what version of foo you have installed, pip is going to internally import them from those wheels
[19:39:23] <nanonyme> Wait wait wait, will we end up digging ourself back into the pit with PEP470 where people publish things into public but personally managed sites and then we lose those projects from pip completely once the sites die? :/
[19:40:15] <dstufft> for people who want to host things externally we're alrady in that pit, just it's implicitly done by directly linking to files on PyPI
[19:40:25] <dstufft> this just makes the lines clearer
[19:40:44] <nanonyme> I was hoping we could just eventually nuke all such projects
[19:40:56] <nanonyme> Or convince them to publish to PyPI
[19:41:40] <nanonyme> Oh, okay, that Debian's solution sounds reasonably sensible
[19:42:12] <dstufft> there are always going to be people for one reason or another don't want to host on PyPI, and that's fine. We have tooling to enable it. Not hosting on PyPI limits how friendly it is for peolpe to install things from them, so I don't think people will take it lightly
[19:43:08] <nanonyme> Insofar I've seen many don't see PyPI as worth the effort and just put source tarballs in random places like Google code
[19:43:45] <nanonyme> Rather than facilitating them keeping the tarballs there imo PyPI publishing should be made at least as simple as publishing into personal sites :)
[19:44:33] <nanonyme> dstufft, did I already comment to you how I think PyPI publishing really needs to be separated from distutils so it can be properly upgraded?
[19:45:00] <dstufft> nanonyme: see twine (and eventually pip upload)
[19:46:09] <nanonyme> Okay, guess twine solves the problem already then?
[19:48:16] <nanonyme> Hrm, I apparently can't make twine documentation
[19:49:00] <nanonyme> Ahh, figures, I was just missing deps
[19:51:17] <nanonyme> Ugh, that totally did not work
[19:52:40] <nanonyme> dstufft, you own twine, right?
[19:52:55] <nanonyme> How about making its doc-building play nice with readthedocs? ;)
[19:53:26] <nanonyme> Or does it actually *have* any documentation?
[19:55:13] <nanonyme> dstufft, basically my grutch with distutils PyPi handling is there is no way at all to prevent it from trying to send to public PyPI by default. That plus bugs
[19:56:20] <dstufft> I don't think it has any real docs besides the readme
[22:04:40] <StGambrinus> Still trying to convince pip to allow me to install numpy and it's still failing with a certification verification error. I've tried --trusted-host, -i http://..., --allow-unverified and supplying the digicert root cert using --cert. Ideas?
[22:08:08] <dstufft> StGambrinus: pastebin the output?
[22:11:21] <StGambrinus> dstufft: Ok. https://dpaste.de/6bZH
[22:12:51] <dstufft> your problem is the fact that scipy uses setup_requires, and setup_requires gets handled by setuptools not pip
[22:14:21] <dstufft> I'm not sure if easy_install provides a way to work around that
[22:15:16] <StGambrinus> So it's entirely unrelated to the SSL errors?
[22:15:32] <dstufft> No, the SSL errors are coming from easy_install
[22:15:54] <dstufft> pip is able to successfully download numpy and scipy, and then it attempts to install scipy
[22:16:26] <StGambrinus> oh, that would explain why no matter what I throw at pip I get that error.. ok. thanks.
[22:16:35] <dstufft> and when doing ``python setup.py install`` for scipy, setuptools takes the setup_requires that scipy specifies and hits the network to try and pull it down
[22:16:49] <dstufft> a work around would be to install the things scipy needs first, before installing scipy
[22:17:21] <dstufft> (setuptools will see it's already installed and not try to hit the network)
[22:18:34] <StGambrinus> yes, will do. if nothing else it at least *feels* like progress.
[22:19:05] <nanonyme> dstufft, sounds like the setup_requires logic needs some rework
[22:19:21] <dstufft> there are ~plans~ for pip to take over the setup_requires when we invoke it
[22:19:31] <dstufft> but nobody's figured out how to do it yet
[22:20:10] <nanonyme> And making pip a shim that uses libpip
[22:31:55] <StGambrinus> I must say I find the whole installation layout hilariously avantgarde on OS X and one of these days I need to find all the python executables on my system. Anyway, thanks again.
[22:32:45] <doismellburning> StGambrinus: heh yes, py34 doesn't work for me and I think it's because my install is using half of System and half MacPorts or something