PMXBOT Log file Viewer

Help | Karma | Search:

#pypa logs for Tuesday the 2nd of December, 2014

(Back to #pypa overview) (Back to channel listing) (Animate logs)
[07:37:45] <mgedmin> hey so pip keeps a manifest of installed files, right? is there a way to search it for a filename, to discover which package installed it, like dpkg -S?
[08:31:25] <mgedmin> uh, the develop branch of virtualenv seems to be broken
[08:31:41] <mgedmin> assuming it's not a PEBKAC error
[08:39:51] <mgedmin> https://github.com/pypa/virtualenv/issues/673
[08:57:26] <deviantony> guys got an issue with my project when I try to package it so with a setup.py
[08:57:57] <deviantony> I'm using an entry_point for my script, but I always got a ImportError: No module named 'mymodule' when I exec the script
[08:58:01] <deviantony> after installation
[08:58:11] <deviantony> if I use python myfile.py it works fine
[08:58:33] <deviantony> here is the project structure: https://github.com/deviantony/xtrabackup-scripts/tree/pip
[09:03:52] <mgedmin> looks all right to me
[09:04:26] <mgedmin> how are you installing it?
[09:04:32] <mgedmin> can you pastebin the full traceback?
[09:05:37] <mgedmin> (also, please don't use "guys")
[09:10:31] <deviantony> mgedmin: sure, I'm using pip to install it
[09:10:39] <deviantony> here is the trace: http://pastebin.com/u856xwTH
[09:11:21] <mgedmin> python 3.4 doesn't support relative imports
[09:11:35] <deviantony> crap
[09:11:50] <mgedmin> use from .tools import ... or (my preferred way) from xtrabackup.tools import ...
[09:12:23] <deviantony> hm, ok!
[09:12:33] <deviantony> indeed I just tested with 2.7 and it's working fine
[09:12:38] <deviantony> thx a lot!
[09:17:21] <mgedmin> tox is a godsend if you want to support multiple python versions
[09:18:00] <deviantony> great, I'll give it a try
[09:18:41] <deviantony> is it possible to do: import .tools or import xtrabackup.tools
[09:18:42] <deviantony> ?
[09:25:02] <mgedmin> yes
[10:14:50] <satanist> how can i change the compiler option for a pip install in a virtualenv?
[10:17:54] <mgedmin> can you be more specific?
[10:18:25] <satanist> i want to install pyside for python3 on freebsd
[10:18:51] <mgedmin> "environment variables" is probably the answer, but I still don't understand the problem
[10:19:48] <satanist> the compiler fails because it don't find <GL/gl.h>
[10:20:33] <mgedmin> CFLAGS=-I/path/to/your/opengl pip install ... ?
[10:21:35] <satanist> i try, it will take a some time
[10:22:18] <mgedmin> this might be insufficient: if includes aren't in a standard location, libraries might also need additional flags
[10:24:58] <satanist> i take the options from the ports-makefile for pyside for python2 and test them
[19:24:55] <chudler1> Some hosts do not have internet connectivity, so I set out to make a pypi mirror. I see no way to do that even after reading PEP 381. Correct?
[19:26:35] <dstufft> chudler1: are you looking for bandernatch?
[19:26:44] <dstufft> warehouse.python.org/project/bandersnatch/
[19:27:42] <chudler1> bandersnatch works really well to download package files. I cannot seem to query the index though. Maybe I missed something that?
[19:27:56] <dstufft> query it how?
[19:28:14] <dstufft> do you mean to install things from it?
[19:28:20] <chudler1> pip search,
[19:28:46] <dstufft> ah
[19:28:50] <dstufft> pip search uses the xmlrpc api
[19:29:00] <dstufft> I don't think any of the mirroring things provide that
[19:31:18] <chudler1> bah! I was afraid of that. On another track.. is warehouse coming along ok? Looks sort of /unhealthy/ to my jaded eye
[19:35:49] <dstufft> chudler1: I back burnered it until after pip 6
[19:36:32] <chudler1> gotcha. thanks for the info!
[19:57:37] <wickman> how does pypi decide whether or not to render long_description as rst?
[19:58:01] <Alex_Gaynor> wickman: try/except IIRC
[19:58:48] <wickman> hm -- is there a linter somewhere to determine if i have a syntax error? all prior versions rendered fine, but this version rendered as monospace text.
[23:13:02] <Yasumoto> wickman: have you already cut pex 0.8.0 ?
[23:13:16] <wickman> just did
[23:13:30] <Yasumoto> kk
[23:13:40] <Yasumoto> i'll try to get my helper function into 0.9.0
[23:13:46] <Yasumoto> #holidayhacking
[23:14:05] <wickman> or 0.8.x -- will probably jump from 0.8.x to 1.0 when requirements.txt stuff lands
[23:14:10] <Yasumoto> aha, kk cool
[23:14:20] <Yasumoto> yeah, it could totally go into a dot-release