Help!

debian distutils site-wide configuration (distutils.cfg in..


Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Python RSS
Next:  Where to install non-debianized python modules?  
Author Message
Corey Wright
External


Since: Dec 03, 2004
Posts: 11



PostPosted: Thu Apr 12, 2007 2:30 pm    Post subject: debian distutils site-wide configuration (distutils.cfg in /etc?)
Archived from groups: linux>debian>maint>python (more info?)

prompted in part by the recent post about installing non-debianized python
modules, i am curious what is the "debian way" for configuring distutils
system-wide.

i want all non-debianized python modules/eggs to be installed
into /usr/local. instead of having to append the proper args to every
setup.py and easy_install invocation, i want to create a system-wide
configuration file for distutils (similar to this [1], but system-wide).

the "python way" appears to be writing to ${prefix}/lib/python
${ver}/distutils/distutils.cfg [2]
(eg /usr/lib/python2.4/distutils/distutils.cfg), but that doesn't seem
appropriate in light of FHS and debian's handling of site.py (located
in /etc with a symlink in /usr/lib/pythonX.Y).

has debian's python installation been altered to search for distutils.cfg
in /etc? i couldn't find anything relevant searching the web for "debian
distutils.cfg" and i'm not familiar enough with python's initialization to
know which source files to look at. if not, should debian's pythonX.Y
packages handle distutils.cfg the same as site.py (install an empty
distutils.cfg to /etc/pythonX.Y and create a symlink to it
in /usr/lib/pythonX.Y/distutils/)?

for now i've manually replicated debian's site.py handling for
distutils.cfg, but i wonder if this should be done by the debian python
package (manually editing/creating files in /usr, except for /usr/local,
always makes me nervous Wink.

[1] http://peak.telecommunity.com/DevCenter/PackageNotes#on-debian
[2]
http://docs.python.org/inst/config-syntax.html#SECTION000510000000000000000

corey
--
undefined RemoveThis @pobox.com


--
To UNSUBSCRIBE, email to debian-python-REQUEST RemoveThis @lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster RemoveThis @lists.debian.org
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Python All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum