PMXBOT Log file Viewer

Help | Karma | Search:

#pypa logs for Wednesday the 27th of July, 2016

(Back to #pypa overview) (Back to channel listing) (Animate logs)
[11:22:32] <ssc> Since setuptools.find_packages() does not yet support implicit namespace packages, I am currently using something like this:
[11:23:03] <ssc> packages=['prefix.name.{}.format(p) for p in find_packages('src/prefix/name')]
[11:23:17] <ssc> Is this a good idea or are there any problems with it?
[11:26:04] <wiggy> personally I'm not using implicit namespaces until that is fixed
[11:26:29] <wiggy> but most of what I do is python 2, so that is mandatory anyway
[11:27:55] <ssc> I currently *have* to use them for a project (which is python3)
[12:08:12] <ronny> oh, fun ^^
[12:56:33] <wiggy> why do you have to use them?
[12:56:38] <wiggy> py3 supports explicit namespaces as well
[15:21:24] <vmonteco_> Hello!
[15:22:16] <vmonteco_> I know that I can install a package from a git repo with a specific tag/commit. But can I do the same with local git repositories? :)
[15:32:10] <ssc> git checkout x; pip install .
[15:32:20] <ssc> this should work :)
[15:34:32] <vmonteco_> ssc: Yes, but what could I do to avoid the checkout? :)
[15:35:06] <ssc> it does not look like something like "pip install git+file://.@x" works
[15:36:29] <vmonteco_> ssc: I've already tried but I have this : http://dpaste.com/1SFTY38 :S
[15:39:45] <ssc> I get different errors for git+file:// and hg+file:// :-O
[15:42:28] <xafer> hmm, `pip install git+file:///path_to_some_local_git_repo@sha1` works for me
[15:42:28] <ssc> pip install git+file:///abs/path/to/project/@61a29
[15:42:33] <ssc> this actually seems to work
[15:42:46] <xafer> yup I tested with an obsolute path also
[15:43:18] <vmonteco_> So could it be related to my package and not to pip? :/
[15:43:40] <vmonteco_> Sorry, I have to go AFK, I'll be back!
[15:43:59] <ssc> I wonder why it doesn't work with hg repos ...
[15:44:21] <ssc> no even with out at @rev
[15:56:51] <vmonteco_> re!
[16:02:38] <vmonteco_> xafer ssc I'm trying again since it seemed to not be related to pip or the package.
[16:03:17] <vmonteco_> Well! pip install git+file:///nfs/2013/v/vmonteco/Brouillon/django@1.9.5-nfs worked fine this time! :) I can't explain the error, I just opened a new shell. :/
[16:03:25] <vmonteco_> ssc: xafer Thank you for the help!
[16:38:09] <xafer> you're welcome:)
[16:48:36] <dstufft> tdsmith: oh I see your thing got merged, how did it work out?
[16:52:53] <tdsmith> dstufft: virtualenvs!
[16:53:14] <tdsmith> nothing about fetching or declaring the resources is going to change so the dependencies are still gonna be fixed
[16:53:52] <tdsmith> all in all i'm pleased; thanks for your comments
[22:56:34] <grant-h> In a setup.py I am install_requires to require a package
[22:57:24] <grant-h> this package also has a script that I need that is included using 'scripts' in it's setup.py
[22:57:52] <grant-h> in my setup.py how do I indicate that I also want this script?
[22:59:26] <grant-h> (and in my first message I meant to say: 'In a setup.py I am USING install_requires to require a package'
[23:39:56] <tdsmith> what do you mean by "i also want this script"?
[23:40:00] <tdsmith> how do you want it when?
[23:59:17] <grant-h> tdsmith: I want it to be included as an executable
[23:59:51] <tdsmith> i think you shouldn't have to do anything extra to express that