Re: question on packaging of python applications

2000-11-16 Thread Moshe Zadka
On 15 Nov 2000, Mike Coleman wrote: > Okay, but I'm thinking that not all .pycs should necessarily go in > /usr/lib/pythonX.X (or whatever). I was thinking that generally useful python > code should go in those directories, but that code that's really only useful > as part of a particular applica

Re: question on packaging of python applications

2000-11-15 Thread Rob Tillotson
Mike Coleman <[EMAIL PROTECTED]> writes: > Okay, but I'm thinking that not all .pycs should necessarily go in > /usr/lib/pythonX.X (or whatever). I was thinking that generally useful python > code should go in those directories, but that code that's really only useful > as part of a particular app

Re: question on packaging of python applications

2000-11-15 Thread Mike Coleman
Rob Tillotson <[EMAIL PROTECTED]> writes: > Then we have no choice, all Python packages will have to depend on a > specific version of Python and be installed under that version's > library, no matter how the .pycs are supplied. Okay, but I'm thinking that not all .pycs should necessarily go in /

Re: question on packaging of python applications

2000-11-15 Thread Carey Evans
Moshe Zadka <[EMAIL PROTECTED]> writes: > On 14 Nov 2000, Rob Tillotson wrote: [...] > > 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

Re: question on packaging of python applications

2000-11-15 Thread Moshe Zadka
On 15 Nov 2000, Rob Tillotson wrote: > How about the other way around? If the goal is to have 1.5.2 coexist > with 2.0 on the same machine, this still presents a potential problem > which will force packages to be dependent on one version or the > other. Correct: things built for 2.0 have a good

Re: question on packaging of python applications

2000-11-15 Thread Rob Tillotson
Moshe Zadka <[EMAIL PROTECTED]> writes: > On 15 Nov 2000, Rob Tillotson wrote: > > Moshe Zadka <[EMAIL PROTECTED]> writes: > > > This isn't true. Python 1.5.2-compiled extensions will work just fine > > > with Python 2.0. > > > > Hmm, they have changed the C API version several times in the past >

Re: question on packaging of python applications

2000-11-15 Thread Moshe Zadka
On 15 Nov 2000, Rob Tillotson wrote: > Moshe Zadka <[EMAIL PROTECTED]> writes: > > This isn't true. Python 1.5.2-compiled extensions will work just fine > > with Python 2.0. > > Hmm, they have changed the C API version several times in the past > with minor releases, I guess it just didn't occur

Re: question on packaging of python applications

2000-11-15 Thread Rob Tillotson
Moshe Zadka <[EMAIL PROTECTED]> writes: > This isn't true. Python 1.5.2-compiled extensions will work just fine > with Python 2.0. Hmm, they have changed the C API version several times in the past with minor releases, I guess it just didn't occur to me that there would be a major release without

Re: question on packaging of python applications

2000-11-15 Thread Moshe Zadka
On 14 Nov 2000, Rob Tillotson wrote: > Moshe Zadka <[EMAIL PROTECTED]> 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 wil

Re: question on packaging of python applications

2000-11-14 Thread Rob Tillotson
Moshe Zadka <[EMAIL PROTECTED]> 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 P

Re: question on packaging of python applications

2000-11-14 Thread Moshe Zadka
On Tue, 14 Nov 2000, Bastian Kleineidam wrote: > >What might be a problem is where we put 3rd party modules. > In /usr/lib/pythonx.x/site-packages/ 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 itse

Re: question on packaging of python applications

2000-11-14 Thread Bastian Kleineidam
>What might be a problem is where we put 3rd party modules. In /usr/lib/pythonx.x/site-packages/ Bastian

Re: question on packaging of python applications

2000-11-14 Thread Moshe Zadka
On Tue, 14 Nov 2000, Michael Sobolev wrote: > Why? I do think that it's a good idea to separate .py{c,o} files from .py > ones. As was mentioned before, .py{c,o} is very specific to Python minor version. The Python development team, while it is firmly commited to source-compatability, has no int

Re: question on packaging of python applications

2000-11-14 Thread Michael Sobolev
On Mon, Nov 13, 2000 at 09:39:45PM +0200, Moshe Zadka wrote: > > BTW, what's the reason of making packages containing .py files? Is not it > > better to include only .pyo and .pyc files? And for those who really need > > sources there those source packages? > > No! These are needed at run-time,

Re: question on packaging of python applications

2000-11-13 Thread Moshe Zadka
On Mon, 13 Nov 2000, [ISO-8859-1] Jérôme Marant wrote: > So, .py scripts can be used with any Python releases without any problem. > (.py files can then be compiled at postinst time). This is the best way to hadnle it. Something to still consider is whether we want to deal with Python 1.5.2 and P

Re: question on packaging of python applications

2000-11-13 Thread Jérôme Marant
> BTW, what's the reason of making packages containing .py files? Is not > it > better to include only .pyo and .pyc files? And for those who really > need > sources there those source packages? A good reason (mentioned in a previous thread) is that there are some incompatibilities between byte

Re: question on packaging of python applications

2000-11-13 Thread Moshe Zadka
On Mon, 13 Nov 2000, Michael Sobolev wrote: > On Thu, Nov 02, 2000 at 06:31:10PM +0100, Jérôme Marant wrote: > > There is no need to include .pyc and .pyo in packages as python programs > > can work without at first use. Moreover, this makes packages > > bigger. > BTW, what's the reason of m

Re: question on packaging of python applications

2000-11-13 Thread Michael Sobolev
On Thu, Nov 02, 2000 at 06:31:10PM +0100, JИrТme Marant wrote: > There is no need to include .pyc and .pyo in packages as python programs > can work without at first use. Moreover, this makes packages > bigger. BTW, what's the reason of making packages containing .py files? Is not it better

Re: question on packaging of python applications

2000-11-03 Thread J�r�me Marant
Bastian Kleineidam <[EMAIL PROTECTED]> writes: > BTW: is there yet a .deb package for the Distutils? If not, I will package > it (when I am a Debian Developer, I am still in the queue). It is already in woody and packaged by Matthias Klose. It is named python-distutils. -- Jérôme Marant <

Re: question on packaging of python applications

2000-11-03 Thread Bastian Kleineidam
Hi, it seems there are some points to _not_ precompile Python files. - packages get bigger (they get substantially bigger, more than twice the size if they have lots of .py files) - compatibility: I found the official wrapup Third party extensions built for Python 1.5.x or 1.6 cannot be use

Re: question on packaging of python applications

2000-11-03 Thread Moshe Zadka
On Thu, 2 Nov 2000, Bastian Kleineidam wrote: > >I recently created a debian file for my project (see http://subterfugue.org), > >and discovered just now why including .pyc and .pyo files directly doesn't > >work optimally. > Where is the problem? Python bytecode should be platform > independent!

Re: question on packaging of python applications

2000-11-02 Thread Mike Coleman
[EMAIL PROTECTED] (Jérôme Marant) writes: > Bastian Kleineidam <[EMAIL PROTECTED]> writes: > > > >I recently created a debian file for my project (see > > >http://subterfugue.org), > > >and discovered just now why including .pyc and .pyo files directly doesn't > > >work optimally. > > Where is th

Re: question on packaging of python applications

2000-11-02 Thread Mike Coleman
Bastian Kleineidam <[EMAIL PROTECTED]> writes: > >I recently created a debian file for my project (see http://subterfugue.org), > >and discovered just now why including .pyc and .pyo files directly doesn't > >work optimally. > Where is the problem? Python bytecode should be platform > independent!

Re: question on packaging of python applications

2000-11-02 Thread Jérôme Marant
Bastian Kleineidam <[EMAIL PROTECTED]> writes: > >I recently created a debian file for my project (see http://subterfugue.org), > >and discovered just now why including .pyc and .pyo files directly doesn't > >work optimally. > Where is the problem? Python bytecode should be platform > independent!

Re: question on packaging of python applications

2000-11-02 Thread Bastian Kleineidam
>I recently created a debian file for my project (see http://subterfugue.org), >and discovered just now why including .pyc and .pyo files directly doesn't >work optimally. Where is the problem? Python bytecode should be platform independent! So it is safe to include .pyc and .pyo files. There is no

question on packaging of python applications

2000-11-02 Thread Mike Coleman
Hi, I recently created a debian file for my project (see http://subterfugue.org), and discovered just now why including .pyc and .pyo files directly doesn't work optimally. Looking at other packages which contain python code, it looks like there are several slightly different variations on how th