Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 07 Aug 2011 15:24:01 +0400
From:      Andrey Zonov <andrey@zonov.org>
To:        freebsd-ports@freebsd.org, freebsd-python@freebsd.org
Subject:   [patch] always install python's eggs as unpacked files
Message-ID:  <4E3E75D1.7050206@zonov.org>

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

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.

-- 
Andrey Zonov


--------------090403090402070604070909
Content-Type: text/plain;
 name="bsd.python.mk.patch.txt"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="bsd.python.mk.patch.txt"

LS0tIC91c3IvcG9ydHMvTWsvYnNkLnB5dGhvbi5tay5vcmlnCTIwMTEtMDgtMDYgMjA6NTU6
NTcuMDAwMDAwMDAwICswMDAwCisrKyAvdXNyL3BvcnRzL01rL2JzZC5weXRob24ubWsJMjAx
MS0wOC0wNyAxMDozMTozMi4wMDAwMDAwMDAgKzAwMDAKQEAgLTQ1NCw3ICs0NTQsNyBAQAog
CiBQWURJU1RVVElMU19CVUlMRF9UQVJHRVQ/PQkJYmRpc3RfZWdnCiBQWURJU1RVVElMU19J
TlNUQUxMX1RBUkdFVD89CWVhc3lfaW5zdGFsbAotUFlESVNUVVRJTFNfSU5TVEFMTEFSR1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ydSAke1RNUFBMSVNUfS5lZ2cg
JHtUTVBQTElTVH0ucGVpX3RtcCA+PiAke1RNUFBMSVNUfQorCUAke0VDSE9fQ01EfSAiQHVu
ZXhlYyAke1JNfSAtcmYgJHtQWVRIT05fU0lURUxJQkRJUn0vJHtQWUVBU1lJTlNUQUxMX0VH
R30iID4+ICR7VE1QUExJU1R9CiAJQCR7RUNIT19DTUR9ICJAZXhlYyAke1NFVEVOVn0gUFlU
SE9OUEFUSD0ke1BZRUFTWUlOU1RBTExfU0lURUxJQkRJUn0gXAogCQkke1BZRUFTWUlOU1RB
TExfQ01EfSAke1BZRUFTWUlOU1RBTExfSU5TVEFMTEFSR1N9IiBcCiAJCT4+ICR7VE1QUExJ
U1R9Cg==
--------------090403090402070604070909--



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