PMXBOT Log file Viewer

Help | Karma | Search:

#pypa logs for Friday the 14th of November, 2014

(Back to #pypa overview) (Back to channel listing) (Animate logs)
[01:17:06] <palendae> I have a question - According to https://github.com/pypa/pip/issues/1268#issuecomment-27328306, I can use --allow-unverified in a requirements.txt. Is that one per line, or global to the file?
[01:53:34] <buck11> was there a virtualenv change that might have caused this? https://bitbucket.org/ned/coveragepy/issue/337/test-failures-on-tip
[01:53:49] <buck11> or: has there always been a local/lib symlink?
[02:18:11] <buck11> i'm seeing that importing it has a side-effect http://paste.pound-python.org/show/tb2fMiTBrI770ka4NEBj/
[02:18:21] <buck11> it == pkg_resources, ahem
[02:24:42] <dstufft> yes
[02:24:46] <dstufft> importing pkg_resources does
[02:26:01] <nedbat> dstufft: why does it do that?
[02:26:54] <dstufft> hysterical raisins
[02:28:02] <dstufft> it's not very good, but it's always done that and some things depend on it
[02:41:43] <buck11> nedbat: dstufft: this line is the offender https://bitbucket.org/pypa/setuptools/src/tip/pkg_resources.py?at=default#cl-2522
[02:42:03] <buck11> nedbat: shall we just import pkg_resources at the top of try_exec.py?
[02:42:11] <buck11> would normalize it
[02:42:27] <buck11> # ha!
[02:42:48] <buck11> p = np
[02:42:51] <buck11> someone funny
[08:15:32] <Dulcin_> Hi I´m having a bit of trouble, hoping someone can help me. I´m using an older version of pip which still has the no-global-site-packages.txt in the lib/python2.7/ folder. My virtualenv is created in the /opt/ folder, but when I want to install django in it, it tells me permission denied, so I sudo pip install it, but then it tells me packages are already satisfied and takes django from the global site packages.
[08:16:53] <Dulcin_> Scrap that about the older version, that didn't make sense. But I guess I meant to say that I do not want it to use the global site packages, and when I sudo pip install it, it is using the global site packages
[08:17:55] <mgedmin> sudo pip probably invokes your global pip
[08:18:16] <mgedmin> why not sudo -u owner-of-your-virtualenv-directory /opt/your-virtualenv/bin/pip install django etc?
[08:18:39] <mgedmin> (is the virtualenv owned as root? are you comfortable running random build scripts downloaded from the Internet as root?)
[08:19:03] <Dulcin_> ah, I wasn't aware I could do it like that
[08:19:53] <Dulcin_> Currently it is owned by root yeah
[08:20:16] <Dulcin_> Though the folder with the project source I chowned to www-data
[08:24:03] <Dulcin_> So I suppose it would be better to chown the entire folder to www-data?
[08:24:18] <Dulcin_> Your solution worked by the way, I'm forever grateful :-) !!
[08:35:45] <dAnjou> Dulcin_: even better create a dedicated user and group
[08:36:19] <dAnjou> www-data is the default for various other things, do you want to take the risk that those overwrite your data?
[12:05:08] <AxonetBE> I installed virtualenv and created a virtualenv called env, now I want to install falcon with pip install falcon but I have problems with my certificates...
[12:05:20] <AxonetBE> how can I solve this, I get error : SL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed -- Some packages may not be found!
[15:18:16] <Fah> Hey, I'm working on using pip to build some binary wheels to distribute to a cluster and I find myself running into an issue that looks very similar to this: https://github.com/pypa/pip/issues/2105 what's the word with using wheels when distribute gets dragged in as a dep?
[16:03:19] <buck11> Fah: if possible, amend those packages to not require distribute
[16:03:34] <buck11> ie simply remove the distribute require from setup.py
[16:24:05] <DanielHolth> Fah I sometimes put a fake .egg-info (just a text file) into site-packages to make it think distribute is installed
[16:24:40] <Fah> Actually part of this is the packages in question are in desparate need of an upgrade
[16:25:29] <Fah> I didn't realize how old some of this was. So the first thing I think I need to do is upgrade to versions that work with modern packaging tools and pass all their tests in the app code.
[16:25:59] <Fah> otherwise, yes... I'm going to have to hack up their build rules up to work with pip/wheel
[16:27:01] <DanielHolth> I have a virtualenv creation script and after it creates the virtualenv it adds the phony distribute. Then things work.
[17:29:45] <buck11> does anyone understand why i get a local/lib symlink in my virtualenvs and ned doesn't? https://bitbucket.org/ned/coveragepy/issue/337/test-failures-on-tip#comment-13653960
[17:29:47] <buck11> nedbat:
[17:32:26] <buck11> if sysconfig._get_default_scheme() == 'posix_local':
[17:42:36] <buck11> https://github.com/pypa/virtualenv/blob/develop/virtualenv.py#L1563
[17:42:59] <buck11> i guess osx doesn't use the posix-local scheme, bit i would have though the travis ubuntu machines would
[17:43:16] <buck11> the comment on that function is quite unconvincing. why do we need those symlinks?
[17:45:03] <buck11> it's because of a bug report from me
[17:48:37] <buck11> https://github.com/pypa/virtualenv/issues/118
[17:55:43] <buck11> if /usr/lib/python2.7/sysconfig.py:285 were .replace(join(sys.prefix, "local", sys.prefix,1)
[17:56:01] <buck11> all would be well
[17:56:19] <buck11> fixes the similar-but-different bug in comments from Neetuj
[18:32:16] <nedbat> buck11: i think i have an environment i can reproduce that in, i can try later tonight
[18:32:38] <buck11> nedbat: it's due to an ubuntu patchset
[18:32:46] <buck11> need to use the ubuntu deb to repro i think
[18:33:00] <buck11> ohhh travis doesn't have it bc they build from source
[18:33:02] <buck11> via pyenv
[19:00:49] <buck11> it seems like if i build from source, all this crud might go away