From owner-freebsd-python@FreeBSD.ORG Sun Aug 7 18:11:59 2011 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D4FEB1065670 for ; Sun, 7 Aug 2011 18:11:59 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 683A58FC18 for ; Sun, 7 Aug 2011 18:11:59 +0000 (UTC) Received: by fxe4 with SMTP id 4so1754276fxe.13 for ; Sun, 07 Aug 2011 11:11:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=h/8pgNoA0ci0ZNl5hgfLth2ZR/XtXlo9z7pQtpoqCVg=; b=DmEAg31moMTpThqd9aIKzgVU64QCOWub9vgjaJYcyf195SsVRvqhdZ6TaZIURA5o/D dDdcjeDJ5SNGN3bPPXizcLy+F2UORLg5YaIJAgXmXj/3Iq5eKqwfInXEzVuc+bGOoyK9 6SlARd/BXZrkySaDAuIPQ+7/k3XKYTwIDTWCQ= Received: by 10.223.76.137 with SMTP id c9mr6258540fak.62.1312740718360; Sun, 07 Aug 2011 11:11:58 -0700 (PDT) Received: from limbo.lan ([195.225.157.86]) by mx.google.com with ESMTPS id b14sm3584575fab.19.2011.08.07.11.11.56 (version=SSLv3 cipher=OTHER); Sun, 07 Aug 2011 11:11:57 -0700 (PDT) Message-ID: <4E3ED56A.5090108@gmail.com> Date: Sun, 07 Aug 2011 21:11:54 +0300 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:5.0) Gecko/20110702 Thunderbird/5.0 MIME-Version: 1.0 To: Andrey Zonov References: <4E3E75D1.7050206@zonov.org> In-Reply-To: <4E3E75D1.7050206@zonov.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org, freebsd-python@freebsd.org Subject: Re: [patch] always install python's eggs as unpacked files X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Aug 2011 18:11:59 -0000 07.08.2011 14:24, Andrey Zonov wrote: > Hi, > > I've got two problems with python's eggs installed from ports. > > As you know, many eggs install from ports as archives and then > unprivileged pseudo-user tries to use them, it's got an error about > can't creating PYTHON_EGG_CACHE. That's OK, I've just set environment > "PYTHON_EGG_CACHE=/var/tmp" and all works quite well. But a week ago I > needed to run two daemons that use pymongo and I couldn't do this. The > first daemon created PYTHON_EGG_CACHE and unpacked pymongo, but the > second couldn't create PYTHON_EGG_CACHE because PYTHON_EGG_CACHE already > exists! Even though they both run as "nobody". > > The second problem with that behaviour is when you're installing some > python module from packages you need the Internet connection to get an > egg from site and build it on-the-fly. > > Please, inspect my patch. I think that's a good solution for that problems. I second this one, default behavior seems incorrect for me too. I've tested the patch against devel/py-greenlet an it works for me with minor changes (commenting out PYDISTUTILS_INSTALLARGS). -- Sphinx of black quartz judge my vow.