Help!

Existing modules for new Python

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Python RSS
Next:  Bug#539348: RM: asterisk-prompt-fr -- ROM; dead u..  
Author Message
anatoly techtonik
External


Since: Jul 30, 2009
Posts: 4



PostPosted: Thu Jul 30, 2009 6:10 pm    Post subject: Existing modules for new Python
Archived from groups: linux>debian>maint>python (more info?)

Hello,

Can anybody tell what happens with existing Python modules when a new
Python version is deployed on the system?
Are they recompiled or reinstalled or left inaccessible in this version?

WBR,

--anatoly t.


--
To UNSUBSCRIBE, email to debian-python-REQUEST.TakeThisOut@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.TakeThisOut@lists.debian.org
Back to top
anatoly techtonik
External


Since: Jul 30, 2009
Posts: 4



PostPosted: Fri Jul 31, 2009 10:10 am    Post subject: Re: Existing modules for new Python [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Thu, Jul 30, 2009 at 7:10 PM, Max Bowsher<maxb DeleteThis @f2s.com> wrote:
> anatoly techtonik wrote:
>> Hello,
>>
>> Can anybody tell what happens with existing Python modules when a new
>> Python version is deployed on the system?
>> Are they recompiled or reinstalled or left inaccessible in this version?
>
> Debian python packages trigger hook scripts in
> /usr/share/python/runtime.d/ on installation to cause compilation of
> bytecode for newly installed versions.
>
Shouldn't this be described in Debian Python Policy?
http://www.debian.org/doc/packaging-manuals/python-policy/

Because I have more questions that are not answered there:
What scripts should installed by python modules packages, which
parameters do these scripts accept? In particular - how do they know
for what version of Python they are being called and where to place
interpreter specific bytecompiled files?

> If the package providing the modules in question uses python-support or
> python-central everything should be automatically taken care of by the
> above process.
>
"Uses" means "adds it as dependency" or there must be specific API
calls to get the desired result?

Thank you.

--
anatoly t.


--
To UNSUBSCRIBE, email to debian-python-REQUEST DeleteThis @lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster DeleteThis @lists.debian.org
Back to top
David Lyon
External


Since: Aug 05, 2009
Posts: 1



PostPosted: Wed Aug 05, 2009 3:10 am    Post subject: Re: Existing modules for new Python [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Thu, 30 Jul 2009 17:33:45 -0400, anatoly techtonik <techtonik DeleteThis @gmail.com>
wrote:
> Can anybody tell what happens with existing Python modules when a new
> Python version is deployed on the system?
> Are they recompiled or reinstalled or left inaccessible in this version?

They are left on the system in /usr/lib/pythonX.Y/site-packages or wherever
they got installed.

The new version of python goes into /usr/lib/pythonX.Z so the old ones
won't be seen.

They are still accessible via the old python version, but not accessible
to the new python version.

David


--
To UNSUBSCRIBE, email to debian-python-REQUEST DeleteThis @lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster DeleteThis @lists.debian.org
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Python All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum