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

Re: Python versions and bytecode



le mer 06-03-2002 à 01:33, dman a écrit :

> | 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.

Okay. So what is the preferred way to be sure that the bytecode for this
game always corresponds to the current python version ?

-- 
 .''`.           Josselin Mouette        /\./\
: :' :           josselin.mouette@ens-lyon.org
`. `'
  `-  Debian GNU/Linux -- The power of freedom

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


Reply to: