[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Suggestion of dh_purepython



On 10-Jan-2002 Bastian Kleineidam wrote:
> Hi Python folks,
> 
> I have put together a dh_purepython debhelper script to help
> the installation of pure Python packages.
> 
> Still missing:
> 
> 1) All Python X.Y versions need to be preinstalled. What happens
>    when you install an new Python version? Hmm, we have to 
>    register those pure python packages somehow and byte-compile
>    them if we install a new pythonX.Y package.
>    

read all python* binaries from /usr/bin, loop through every one that has a
version on the end, strip the version out and use it.

for i in /usr/bin/python*
do
    # if $i ends in a number
    # pyver = $i's version number
    # call /usr/lib/python$pyver/compileall.py
done



Reply to: