PMXBOT Log file Viewer

Help | Karma | Search:

#pypa logs for Friday the 1st of July, 2016

(Back to #pypa overview) (Back to channel listing) (Animate logs)
[01:22:35] <mhils> I have a possibly stupid question: What's the correct way to pin this package? https://pypi.python.org/pypi/typing/3.5.2
[01:23:09] <mhils> is it typing==3.5.2 (as the url would indicate) or typing==3.5.2.2 (as the filename and pip freeze would indicate)?
[01:24:12] <mhils> I naively pinned to 3.5.2.2, but that apparently causes some issues for older versions of pip (?) (see https://github.com/mitmproxy/mitmproxy/issues/1303)
[01:25:56] <dstufft> 3.5.2.2
[01:26:59] <dstufft> I'm actually surprised they managed to get a 3.5.2.2 package uploaded to 3.5.2
[01:27:02] <dstufft> that shouldn't happen
[01:28:22] <mhils> dstufft: thx. shall I reach out to the typing issue tracker and file an issue for this over there?
[01:28:56] <dstufft> mhils: I mean, uploading to 3.5.2 shouldn't matter here for pip, it's only a confusion thing for developers
[01:29:09] <dstufft> I'm not sure what happened in that issue... it seems like the person solved it by upgrading pip?
[01:29:14] <mhils> yes
[01:29:47] <dstufft> I wonder if they solved it by upgrading pip, or by getting off the distro version of pip (with the distro patches)
[01:30:16] <dstufft> we get ~weird errors every now and again that get solved by switching to the non-distro copy of pip
[01:30:21] <dstufft> even the exact same version
[01:30:27] <mhils> idk - I can downgrade and check if you are interested
[01:30:40] <dstufft> mhils: sure!
[01:31:09] <dstufft> (it's a bit hard to say if it's the distro patches, or if it's the combination of dependencies the distro hapenes to have shipped)
[01:39:32] <mhils> dstufft: I can sucessfully install it with pip 0.7, so ¯\_(ツ)_/¯
[01:39:54] <mhils> also the system-pip on ubuntu 14 works for me
[14:32:16] <hetii> Hello
[14:33:13] <hetii> What is the proper way to install a local package by pip ? Till now I do it by pip install -e /srv/my_local_package and this works till this folder exist
[14:33:44] <hetii> otherwise I got:pkg_resources.DistributionNotFound: The 'my_local_package' distribution was not found and is required by the application
[14:33:51] <hetii> when I try to run it
[14:37:06] <dstufft> hetii: -e <a file path> installs the package as "editable", which means that instead of actually installing it, it just sort of links it into the Python environment to allow you to continue editing those files (it's basically a development tool)
[14:37:31] <hetii> I see
[14:37:50] <dstufft> if you have an unpacked package on your FS, you can do a "real" installation by just doing ``pip install <a path to a directory>`` (notice the lack of -e) or if you have a package file (a .tar.gz or a .whl or whatever) you can install it using ``pip install <path to that file>``
[14:39:29] <hetii> Ok, is it possible by pip get codes directly from github ?
[14:41:50] <hetii> I also try pip uninstall /mypath/to/package but see that still have link under /usr/local/lib/python2.7/dist-packages/mypackage.egg-link
[14:42:07] <hetii> try also by name of it with the same result
[14:43:06] <dstufft> hetii: https://pip.pypa.io/en/stable/reference/pip_install/#vcs-support
[14:44:05] <hetii> thx