Have manual install use python site-packages and dist-packages

Bug #742975 reported by Matt Jones
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Rootin Tootin
Fix Released
Medium
Unassigned

Bug Description

According to this:
http://mail.python.org/pipermail/python-dev/2009-April/088941.html

Some distros install python modules in different locations:
/usr/lib/pythonX.X/dist-packages/
/usr/lib/pythonX.X/site-packages/
/usr/local/lib/pythonX.X/site-packages/
/usr/local/lib/pythonX.X/dist-packages/

This is to prevent distro packages and manually installed modules from stomping on each other.

We need to map out what distros do and adapt the Makefile accordingly.

Matt Jones (workhorsy)
description: updated
Revision history for this message
Matt Jones (workhorsy) wrote :

We should just try to see if the directories exist and use the first one that does:

/usr/local/lib/pythonX.X/dist-packages/
/usr/local/lib/pythonX.X/site-packages/
/usr/lib/pythonX.X/dist-packages/
/usr/lib/pythonX.X/site-packages/

Revision history for this message
Matt Jones (workhorsy) wrote :

Change that to this ordering:

/usr/local/lib/pythonX.X/site-packages/
/usr/local/lib/pythonX.X/dist-packages/
/usr/lib/pythonX.X/site-packages/
/usr/lib/pythonX.X/dist-packages/

Matt Jones (workhorsy)
Changed in rester:
status: Confirmed → Fix Committed
Matt Jones (workhorsy)
Changed in rester:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.