Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 07 Aug 2011 23:14:16 +0400
From:      Andrey Zonov <andrey@zonov.org>
To:        Volodymyr Kostyrko <c.kworr@gmail.com>
Cc:        freebsd-ports@freebsd.org, freebsd-python@freebsd.org
Subject:   Re: [patch] always install python's eggs as unpacked files
Message-ID:  <4E3EE408.8030206@zonov.org>
In-Reply-To: <4E3ED56A.5090108@gmail.com>
References:  <4E3E75D1.7050206@zonov.org> <4E3ED56A.5090108@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------080507060703070408030205
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

Hi,

Thank you for you feedback. I've fixed that problem easier.
My point is that I don't want to fix all bad ports. I want to fix them 
all at once, completely.

Tomorrow I want to try to build all 400 python modules that use 
`easy_install' in my tinderbox with this patch.

-- 
Andrey Zonov


07.08.2011 22:11, Volodymyr Kostyrko пишет:
> 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).
>

--------------080507060703070408030205
Content-Type: text/plain;
 name="bsd.python.mk.patch.txt"
Content-Transfer-Encoding: base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7U0VEfSAtaSAiIiAtZSAncyxeJHtQUkVGSVh9LywsJyAke1RNUFBMSVNUfS5lZ2cK
KwlAJHtHUkVQfSAtdnggIiR7UFlUSE9OX1NJVEVMSUJESVI6Uywke1BSRUZJWH0vLCx9LyR7
UFlFQVNZSU5TVEFMTF9FR0d9IiAke1RNUFBMSVNUfSBcCisJCT4gJHtUTVBQTElTVH0ucGVp
X3RtcCB8fCAke1RSVUV9CiAJQCR7RUNIT19DTUR9ICJAdW5leGVjICR7UFlFQVNZSU5TVEFM
TF9DTUR9ICR7UFlFQVNZSU5TVEFMTF9VTklOU1RBTExBUkdTfSIgXAogCQk+ICR7VE1QUExJ
U1R9Ci0JQCR7Q0FUfSAke1RNUFBMSVNUfS5wZWlfdG1wID4+ICR7VE1QUExJU1R9CisJQCR7
U09SVH0gLXJ1ICR7VE1QUExJU1R9LmVnZyAke1RNUFBMSVNUfS5wZWlfdG1wID4+ICR7VE1Q
UExJU1R9CisJQCR7RUNIT19DTUR9ICJAdW5leGVjICR7Uk19IC1yZiAke1BZVEhPTl9TSVRF
TElCRElSfS8ke1BZRUFTWUlOU1RBTExfRUdHfSIgPj4gJHtUTVBQTElTVH0KIAlAJHtFQ0hP
X0NNRH0gIkBleGVjICR7U0VURU5WfSBQWVRIT05QQVRIPSR7UFlFQVNZSU5TVEFMTF9TSVRF
TElCRElSfSBcCiAJCSR7UFlFQVNZSU5TVEFMTF9DTUR9ICR7UFlFQVNZSU5TVEFMTF9JTlNU
QUxMQVJHU30iIFwKIAkJPj4gJHtUTVBQTElTVH0K
--------------080507060703070408030205--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E3EE408.8030206>