[mythtv-users] find_orphans.py error

Raymond Wagner raymond at wagnerrp.com
Mon Jan 16 23:36:51 UTC 2012


On 1/16/2012 17:59, John Pilkington wrote:
> Raymond Wagner wrote:
>> When compiling MythTV, the configure script must be told where to 
>> find the proper python executable. It defaults to 'python', and if 
>> instead that maps to Python 2.4, it will refuse to install them. The 
>> installer will automatically install to where ever that executable 
>> wants the files to go, unless manually specified otherwise. If you 
>> are using an executable other than 'python', you will need to update 
>> the 'bang' line at the top of the script to point to a different 
>> interpreter. 
> I see that /usr/lib/python2.6/site-packages/README
> says
>
>> This directory exists so that 3rd party packages can be installed
>> here.  Read the source for site.py for more details.
> Migh be worth a look?

I'm not sure what you are getting at.  The script that installs the 
Python bindings is wrapped around the Python distutils setup utility.  
The setup utility will automatically install to 
lib/python<version>/site-packages/<package name>, unless you are using 
something Debian-based, in which case they arbitrarily prefer to use 
dist-packages instead.

If you set MythTV's prefix to /usr or /usr/local, the installer will use 
whatever path Python wants.  If you set something less standard, the 
installer will obey that, and install the bindings where you forced 
them, which in turn means Python must be configured to search that 
additional path for packages.


More information about the mythtv-users mailing list