PMXBOT Log file Viewer

Help | Karma | Search:

#pypa logs for Tuesday the 8th of September, 2015

(Back to #pypa overview) (Back to channel listing) (Animate logs)
[19:15:20] <adourado> Does anyone knows how can I remove dependencies from install_requires based on what extra_requires as given to pip install ?
[19:17:40] <dstufft> You can't
[19:19:14] <adourado> Is there other way I can avoid installing certain pacakges on a given platform?
[19:19:35] <ronny> adourado: you could use environment markers in extras
[19:20:12] <adourado> ronny: do you have a link for that? I'm not sure I saw that on the docs I'm looking into
[19:20:28] <adourado> those: https://packaging.python.org/
[19:20:38] <ronny> adourado: so extra_requires={':platform_condition': [...]}
[19:21:13] <ronny> \hmm, im not sure if they are propperly documented there
[19:21:17] <adourado> but those are only for more packages, right? What if I wanna less?
[19:21:49] <ronny> adourado: see https://github.com/pytest-dev/pytest/blob/master/setup.py#L54 as example
[19:22:03] <dstufft> define your platform marker as != a platform
[19:22:07] <ronny> adourado: instead of install_requires you put them into a extra with no name, but a platform condition
[19:32:28] <adourado> I updated pip and the virtualenv and now I'm getting a weird behavior when I install my package with -e
[19:32:48] <adourado> it shows the package name as UNKNOWN
[19:32:59] <adourado> any ideas what's going on?
[19:34:04] <adourado> I'm using the sample project from https://github.com/pypa
[19:49:31] <adourado> I think I solved half of the problem with your tips, guys, thank you!
[19:50:00] <adourado> Now, for the other half: I need to pass an option to setup.py install depending on a environment marker
[19:50:21] <adourado> more specific, I wanna to install dulwich with the --pure option if it's on windows
[19:51:15] <adourado> any ideas?
[19:55:38] <ronny> adourado: now thats practically impossible
[19:55:49] <ronny> adourado: but arent there premade wheels that work?
[19:57:16] <adourado> for dulwich? I'm afraid not
[19:57:52] <adourado> and I'd like to avoid making them myself, because I've never done it, and it would make our distribution process more complicated
[19:58:18] <adourado> ronny: Ona 1 to 10 scale, how bad is this solution? https://github.com/FriendCode/gittle/blob/master/setup.py
[19:59:07] <ronny> adourado: utterly bad
[19:59:23] <adourado> the try/except thing I know doesn't work, because pip actually collects dependencies before installing the package, so, setup doesn't even has a chance to run before pycrypto and paramiko fail on windows
[19:59:25] <ronny> adourado: it would only work with easy_install, to begin with
[19:59:41] <ronny> it would completely break with pip
[19:59:48] <adourado> hmm
[19:59:51] <adourado> that makes sense
[20:00:00] <adourado> it does break with pip
[23:36:01] <tdsmith> there's a pip bug somewhere in here but i don't know what it is and haven't investigated https://github.com/Homebrew/homebrew/issues/43688
[23:37:18] <dstufft> tdsmith: you could probably make that statement about any invocation of pip
[23:37:21] <dstufft> and be right
[23:37:34] <tdsmith> ha
[23:38:05] <dstufft> why do all of the "true" have a c on the end
[23:38:07] <dstufft> in this issue
[23:38:13] <tdsmith> oh, i missed that "truec" was an input
[23:38:19] <tdsmith> i assume the user typoed it
[23:38:25] <tdsmith> probably nevermind then
[23:39:06] <dstufft> :D
[23:39:14] <dstufft> I didn't sleep last night
[23:39:16] <dstufft> so I'm a bit out of it
[23:39:33] <dstufft> it took me a minute to realize misty was telling the person they had a truec somewhere
[23:39:43] <dstufft> I just saw a bunch of truec and was like WHY DO ALL THE TRUES HAVE A C?
[23:40:01] <dstufft> I was concerned for my sanityfor a moment.
[23:42:42] <tdsmith> i'm pretty zonked right now too; maybe not a great state in which to be triaging my inboxes
[23:44:52] <adourado> Does anyone know how can I make a setup.py that can optionally avoid installing c extensions on windows and works with pip ?
[23:46:51] <sontek> adourado: Checkout this setup.py, its kind of complicated but you can see how to turn build extensions on and off: https://github.com/datastax/python-driver/blob/master/setup.py
[23:52:51] <adourado> sontek: that's ... complex
[23:53:35] <adourado> I'm not sure I follow, but is the basic strategy implementing a custom build_ext class?