PMXBOT Log file Viewer

Help | Karma | Search:

#pypa logs for Tuesday the 25th of November, 2014

(Back to #pypa overview) (Back to channel listing) (Animate logs)
[15:39:10] <tos9> erm, remind me, is there syntax for extras when you're installing from a local dir
[16:17:08] <herrwolfe45> tos9: do you mean when the extra resides in a local dir?
[16:17:53] <tos9> herrwolfe45: No, I mean a setup.py that declares extras, and I want to install those
[16:17:59] <tos9> extras_require
[16:18:17] <herrwolfe45> ah ok
[16:18:22] <tos9> herrwolfe45: I'd have assumed pip install ./foo[extra] would have worked, but I guess it doesn't
[16:18:24] <herrwolfe45> pip install -e ".[extra]"
[16:18:29] <tomprince> tos9: No :(
[16:18:35] <tomprince> Only for editable ones.
[16:18:48] <tos9> oh. really. That's a weird limitation? Is that a quirk or intentional?
[16:19:16] <herrwolfe45> the syntax i've written assumes that you are in the dir where the project exists
[16:19:34] <tomprince> tos9: A quirk, I think.
[16:19:53] <tos9> Aha. OK, that does seem to work now, thanks (both of you).
[16:20:15] <tos9> Next pip issue :) : How do I solve "error: Error: setup script specifies an absolute path:"
[16:20:22] <tomprince> tos9: You can do 'pip install path/to/directory' followed by 'pip install <name>[extra]' or so.
[16:20:33] <tos9> (Which is both lying to me, because it doesn
[16:20:36] <tomprince> (maybe with --no-index)
[16:20:38] <tos9> 't, and also seems really weird)
[16:20:59] <tos9> tomprince: Oh, that's interesting too -- /me tries
[16:21:09] <tos9> tomprince: extras metadata is persisted?
[16:21:55] <tos9> Partial traceback on the failure above: https://bpaste.net/show/b888acb56fbe
[16:22:21] <tos9> The setup.py does not specify a script via absolute path (even though I want it to, but it seems like from this and the above that pip really really doesn't want me to be able to do things from other directories)
[16:23:24] <tos9> I've already tried my usual forms of pip debugging :), which involve rotating through upgrading pip and setuptools and then rigorous googling
[16:27:14] <tomprince> tos9: It is, and it is used for console scripts that have extra requirements. (pkg_resources will check that the dependencies specified by the extra are installed)
[16:27:49] <tos9> tomprince: Ah OK