Python versions and bytecode

2002-03-05 Thread Josselin Mouette
Hi,

as I'm currently packaging solarwolf, I have a question about python
bytecode. I have put the .py files used by the game in
/usr/lib/games/solarwolf/ and I compile them in postinst with
compileall.py. The question is : will the generated .pyc and .pyo files
still work if the major python version changes ? For now, I have put a
dependency on python2.1, but it may not be necessary.

Thanks for your help.
(please cc me on replys)
-- 
 .''`.   Josselin Mouette/\./\
: :' :   [EMAIL PROTECTED]
`. `'
  `-  Debian GNU/Linux -- The power of freedom


signature.asc
Description: This is a digitally signed message part


Re: Python versions and bytecode

2002-03-05 Thread Ron Johnson
On Tue, 2002-03-05 at 13:06, Josselin Mouette wrote:
> Hi,
> 
> as I'm currently packaging solarwolf, I have a question about python
> bytecode. I have put the .py files used by the game in
> /usr/lib/games/solarwolf/ and I compile them in postinst with
> compileall.py. The question is : will the generated .pyc and .pyo files
> still work if the major python version changes ? For now, I have put a
> dependency on python2.1, but it may not be necessary.

If possible, pPlease make the dependancy ">= python 2.1".

-- 
++
| Ron Johnson, Jr.Home: [EMAIL PROTECTED]|
| Jefferson, LA  USA  http://ronandheather.dhs.org:81|
||
| 484,246 sq mi are needed for 6 billion people to live, 4   !
! persons per lot, in lots that are 60'x150'.|
! That is ~ California, Texas and Missouri.  !
! Alternatively, France, Spain and The United Kingdom.   |
++




Re: Python versions and bytecode

2002-03-05 Thread dman
On Tue, Mar 05, 2002 at 08:06:38PM +0100, Josselin Mouette wrote:
| Hi,
| 
| as I'm currently packaging solarwolf, I have a question about python
| bytecode. I have put the .py files used by the game in
| /usr/lib/games/solarwolf/ and I compile them in postinst with
| compileall.py. The question is : will the generated .pyc and .pyo files
| still work if the major python version changes ?

No.  The bytecodes change when the developers feel like it (more or
less).  That interface is not constant between even "minor" version
changes.

-D

-- 

The remote desktop feature of Windows XP is really nice (and *novel*!).
As a Microsoft consultant can *remotely* disable the personal firewall
and control the system.  We'll ignore the fact that this tampering with
the firewall is not logged, and more importantly, that the firewall
isn't restored when the clowns from Redmond are done with their job.
-- bugtraq