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

Re: question on packaging of python applications



On 14 Nov 2000, Rob Tillotson wrote:

> Moshe Zadka <moshez@math.huji.ac.il> writes:
> > Say module x Depends: on Python. Where do you install it? python1.5 or
> > python2.0? Remember that you must encode this information in the 
> > package itself.
> 
> Any package that has a binary extension in it will necessarily have to
> be compiled for a specific Python version.

This isn't true. Python 1.5.2-compiled extensions will work just fine
with Python 2.0.

> For things which are truly independent of the Python version, there is
> /usr/lib/site-python.  While python-base does not appear to create
> this directory, it is part of the default sys.path (in the current
> 1.5.2 packages) and there are at least two packages (reportbug and
> dpkg-python) which live there.

But if the .pyc's there are 1.5.2 pyc's, then Python 2.0 won't be able
to work with them, and vice-versa.
--
Moshe Zadka <moshez@math.huji.ac.il> -- 95855124
http://advogato.org/person/moshez



Reply to: