[15:20:53] <tvansteenburgh> hi everyone. i have a package with a dependency that is not on pypi, and cannot be moved there. i would like install with `pip install mypkg` without needing to pass `--allow-external foo --allow-unverified foo`. is this possible?
[15:21:53] <tvansteenburgh> i came up with a gross hack to make it work for my package, but it breaks horribly when my package is included as a dependency of another
[15:29:48] <danito> Is it fine to use the pip module to install packages?
[15:30:00] <danito> I don't want to subprocess in my upgrade script
[15:53:00] <danito> What I want to do is: import pip; pip.install('some package') or something alike
[15:54:40] <dstufft> danito: we don't really have an API like that, you can use pip.main([]) though and just pass wahtever you would normally pass in the CLI flags as list items tho
[15:55:06] <dstufft> tvansteenburgh1: not really, it's done that way on purpose. end users should be aware of what servers they are contacting
[15:55:55] <tvansteenburgh> dstufft: i expected as much but figured I'd ask, thanks for the reply
[15:57:14] <danito> dstufft: thanks, that should solve my pip vs pip2 compatibility issues
[16:05:58] <stbatduke> Ohai #pypa! I have broken some things in my "dev" server and I am trying to back things up in order to fix them after a re-install, but I can't seem to get a "pip freeze" of my applications. When I try "pip freeze" I get a traceback stating: "ImportError: No module named urlparse" ... any idea what I broke and how to fix it ?
[16:06:27] <stbatduke> I was trying to get this server to match our production server as far as the debian packages are concerned, and I think something in there is what broke everything
[19:14:49] <tos9> Did I imagine that pip used to show what thing was requiring the thing it fails to install at some point
[19:15:33] <tos9> oh. I guess the frame is in the traceback.
[19:15:48] <tos9> But I thought it used to show you -> -> ->... Maybe that's just for requirements files.
[19:15:58] <tos9> I guess I can blame setuptools instead.
[22:01:52] <_habnabit> there's not a way to bundle multiple python packages into a single .whl, is there? i'm just wondering if maybe i could simplify deployment by only having a single .whl with all the dependencies instead of multiple .whls for each dependency
[22:07:09] <dstufft> _habnabit: not currently, there's been mentions of it from time to time but generally wheel is focused on package format not deployment format
[22:14:32] <Yasumoto> fwiw I think it'd be interesting to get more feedback about pex.. it started out as a one-man show for a long time, but SRE has been using it for our tools a lot more
[22:14:42] <Yasumoto> (feedback from the community)
[22:15:06] <dstufft> Yasumoto: ya'll should write some blog posts or something
[22:15:48] <Yasumoto> yep, then we'd (hopefully :) get it out to Python Weekly and stuff
[22:29:31] <wickman> dstufft: we still run into it on osx for the reasons ewdurbin pointed out a while ago -- it's basically the wild west what macosx-10.x version your python interpreter hands back to you
[22:29:32] <dstufft> internet explorer kept telling me python.org was a bad website
[22:29:35] <_habnabit> and pex failed again. maybe it just doesn't support python 3.4 yet?
[22:29:41] <pf_moore> embrace the rage, it is the path to the dark side...
[22:29:59] <wickman> dstufft: system python will be macosx-10.{correct_number}-universal but compile your own and pretty good chance it will be macosx-10.4-x86_64 which is useless
[22:30:09] <Yasumoto> wow.. so glad to find people equally angry/hopeful about python packaging
[22:30:16] <dstufft> wickman: that should be fixed in uh, 1.6 I think
[22:30:22] <wickman> dstufft: it does us no good if you're on 10.9 and publish a macosx-10.4-x86_64 egg that actually compiles against the 10.9 abi
[22:30:25] <dstufft> that is supposed to a minimum version
[22:31:10] <dstufft> OSX's built in libraries are pretty good about ABI going forwards
[22:31:13] <wickman> dstufft: this is a python interpreter problem -- unless you're circumventing the info that comes to you from sys/distutils.sysconfig/pkg_resources/setuptools etc
[22:31:20] <dstufft> but pip treated it as == not >=
[22:31:35] <dstufft> it's the other random shit people link against from homebrew and stuff that ruins it
[22:31:50] <wickman> like, run ./configure and it will poop out an interpreter that says you're running 10.4; it doesn't matter what actual version of osx you're on (i _think_ this is fixed in python 3.3+ but we're universally 2.7.x)
[22:32:00] <dstufft> wickman: that's not what OSX version you're running
[22:32:02] <_habnabit> ah, yeah, i see someone else ran into the same problem i did on python 3
[22:32:12] <dstufft> that's what OSX SDK you're compiling against
[22:36:54] <wickman> dstufft: they pythons are compiled using exactly the same script (so same configure options, etc) but on different OS X versions (10.7 vs 10.8)
[22:36:55] <Yasumoto> _habnabit: do you have a link?
[22:38:31] <Yasumoto> shows what I know.. cool. _habnabit I'll try to repro later this evening
[22:38:54] <wickman> pull requests welcomed :-) but my github filters are pretty messed up so you should probably just e-mail me directly
[22:39:10] <wickman> then problem with being in the twitter org is that you're auto-subscribed to all its open source project notifications which is like 1000/day
[22:39:16] <_habnabit> is there a way to get a full traceback out of pex instead of just this exception?
[22:39:29] <Yasumoto> PEX_VERBOSE=1 should give you some more data
[23:02:41] <Yasumoto> rad, I'll write something up
[23:09:02] <Yasumoto> _habnabit: mind filing a github issue?
[23:09:12] <Yasumoto> seems like that's a separate problem
[23:09:19] <_habnabit> Yasumoto, sure, i can do that
[23:10:13] <Yasumoto> I think that'll fall into a larger "ensure pex works with py3" effort (worst case it'll be 'improve py3 test coverage' or something)
[23:10:56] <_habnabit> i have a feeling it's not coverage issues but that the tests incorrectly approximate the real world