PMXBOT Log file Viewer

Help | Karma | Search:

#pypa logs for Wednesday the 25th of February, 2015

(Back to #pypa overview) (Back to channel listing) (Animate logs)
[12:50:45] <utopiah> hi #pypa
[13:01:41] <utopiah> (trying again to solve my problem first before asking a silly question ;)
[13:04:10] <utopiah> (which seems to be moving away from the unmaintained python-magick to pgmagick)
[13:10:08] <ionelmc> putting all the details in one place (asking) is half the solution :-)
[13:55:18] <utopiah> ionelmc: makes me think of http://www.scholarpedia.org/article/Models_of_consciousness#Global_workspace_models
[13:55:34] <utopiah> but yes it worked problem solved, so no question left for the moment ;)
[14:23:56] <mnovenstern> I have a local version of a library that's a dependency of other libraries in my requirements.txt. pip seems to install the local version, but download the one from pypi when something that depends on it is installed, and then fails to build it.
[14:24:22] <mnovenstern> I'm pretty new to pip and python, so any pointers are appreciated
[14:37:56] <ronny> mnovenstern: does your local library declare its dependencies correctly?
[14:38:25] <ronny> mnovenstern: some libs dont declare their dependencies correctly and need to be built in a specific order
[14:39:44] <aboSamoor> hi, so I have the following package "polyglot" on pypi, when I used to use pip install polyglot it used to download all the dependencies. Recently, this does not work anymore it does not seem that pip is able to download the depdencies given the information in requirements.txt, any idea?
[14:59:19] <ronny> aboSamoor: requirements.txt are not the thing that declares dependencies for a package
[14:59:36] <ronny> aboSamoor: install_requires in setup.py do
[15:22:42] <aboSamoor> ronny: here is how my setup.py looks like http://paste.ubuntu.com/10409550/
[15:23:15] <aboSamoor> ronny: then I try to install the package using pip install git+file:///data/polyglot
[15:23:30] <aboSamoor> but it does not pull the dependencies that are defined in requirements
[15:40:57] <ronny> aboSamoor: what does happen with a normal pip install -e data ?
[15:41:28] <ronny> aboSamoor: also is there a *.egg_info folder, is the requiresments file in it intact
[17:17:58] <Ivo> aboSamoor: https://caremad.io/2013/07/setup-vs-requirement/
[17:38:57] <DanielHolth> check it out, realized you can just grab setup-requirements in the top of a single setup.py instead of reading real-setup.py from a separate file.
[17:39:05] <DanielHolth> https://bitbucket.org/dholth/setup-requires/commits/tip
[20:24:17] <diranged> Can someone here help me figure out whats wrong with our http://setup.py/requirements files? If we install all of our dependencies by hand (or, install via pip install -r requirements.txt), it works fine. However, when we install our app itself via pip (through pypi), it fails on the 'requests' library. See this pastie: http://pastie.org/private/zmtyj8k1ckhh9wptigbxw. Here's a pastie using the requirements.txt file and it working fine: http://pastie.org/priva
[20:24:39] <_habnabit> diranged, pick one channel and stick with it, please
[20:25:14] <diranged> I'll stay in here.. thanks.
[20:25:18] <Ivo> _habnabit: I only just told him that this one existed
[20:25:20] <diranged> https://github.com/Nextdoor/kingpin < thats the app.. so you can see the setup.py/etc..
[20:25:36] <Ivo> it's fine
[20:25:45] <_habnabit> diranged, anyway, python-rightscale looks kind of weird
[20:26:17] <diranged> I suspect thats where the issue is… I forked the guys repo to fix a few things, but overall its not our code. I have a feeling its broken in his setup.py.. but I'm just not sure where.
[20:27:09] <_habnabit> diranged, oh, yeah, python-rightscale is all kinds of weird
[20:27:22] <_habnabit> diranged, it has requests in its setup_requires, which i think is confusing pip
[20:27:28] <Ivo> diranged: unless you are using an extremely old virtualenv, --no-site-packages is the default and not needed
[20:27:41] <diranged> (its a habbit..)
[20:28:03] <_habnabit> diranged, oh, you added that setup_requires bit
[20:28:05] <_habnabit> diranged, why did you do that?
[20:28:18] <diranged> lemme go look at that change
[20:28:32] <_habnabit> diranged, https://github.com/brantai/python-rightscale/commit/c56372dea7f3f28a1ddaa572028cfa78a84e7b77
[20:29:00] <diranged> hrmm that may have been a bit of a mistake.. i certainly wanted install_requires. hrmm
[20:29:07] <diranged> You think thats causing the problem?
[20:29:16] <_habnabit> diranged, i do think it is, yes
[20:29:27] <diranged> k lemme write up a fix and try it
[20:29:37] <Ivo> diranged: you need --process-dependency-links on a newer pip, hoepfully for obvious reasons
[20:29:51] <diranged> yeah that part i know.. although im curious in the future what we'll do when that goes away
[20:29:54] <diranged> since 1.6 is removing it
[20:30:07] <Ivo> 1.6 = 6.0, which is out, and has it
[20:30:20] <Ivo> decision to completely remove was reverted for now
[20:30:49] <diranged> oh .. good
[20:31:08] <Ivo> seems weird that it wants exactly the same packages for setup_requires
[20:32:44] <Ivo> try removing that
[20:32:45] <_habnabit> Ivo, it sounds like adding the setup_requires was a mistake
[20:33:30] <Ivo> if you have a package unpacked in current directory, or working on it under version control etc, you can just run pip install -e .
[20:33:49] <Ivo> -e to install it in development mode, or without -e for normal install
[20:35:13] <diranged> https://github.com/brantai/python-rightscale/pull/13, https://github.com/Nextdoor/kingpin/pull/215
[20:35:17] <diranged> sure enough.. fixed the issue
[20:35:25] <diranged> thank you guys..
[20:36:11] <_habnabit> interesting that pip behaved differently though
[20:36:23] <diranged> the behavior overall feels like a bug.. but clearly i triggered it
[20:39:40] <Ivo> diranged: https://packaging.python.org/en/latest/single_source_version.html has a lot of info on getting version safely