Re: coding for multiple versions of python

2009-08-14 Thread Tim Arnold
"Tim Arnold" wrote in message news:h61gld$it...@foggy.unx.sas.com... > Hi, > I've got a python based system that has to run on hp unix and red hat > linux. The Python version on the HP is 2.4 and the version on the Linux > box is 2.6. There's nothing I can do about that. > > I think that means

Re: coding for multiple versions of python

2009-08-14 Thread Martin v. Löwis
> He's assuming: >1) an OS that supports symlinks >2) two versions of Python on same system >3) one set of pure-python sources that want to stay in synch for both > versions. Actually, the OP said he has HP(-UX, I assume), and Linux, so it would be two versions of Python on different

Re: coding for multiple versions of python

2009-08-14 Thread Martin v. Löwis
>> Specifically, put the source code into /net/source/python/foo/*.py. >> Then, on each system, put symlinks to all .py files into >> lib/site-packages/foo. Then Python will place the .pyc files next >> to the symlinks, not next to the actual .py files. > > Why would he need two sets of .py files?

Re: coding for multiple versions of python

2009-08-14 Thread Dave Angel
Grant Edwards wrote: On 2009-08-14, Martin v. L?wis wrote: I'm guessing I need to configure cvs to copy files to both locations whenever I commit. Does that sound right? Is there a better way I'm not thinking of? Just use one set of source files. If the set of files doesn't ch

Re: coding for multiple versions of python

2009-08-14 Thread Grant Edwards
On 2009-08-14, Martin v. L?wis wrote: >> I'm guessing I need to configure cvs to copy files to both >> locations whenever I commit. Does that sound right? Is there a >> better way I'm not thinking of? Just use one set of source files. > If the set of files doesn't change too often, you can use

Re: coding for multiple versions of python

2009-08-13 Thread Martin v. Löwis
> I'm guessing I need to configure cvs to copy files to both locations > whenever I commit. Does that sound right? Is there a better way I'm not > thinking of? If the set of files doesn't change too often, you can use symlinks. That's how Debian currently installs Python packages for multiple ve

Re: coding for multiple versions of python

2009-08-13 Thread Chris Rebert
On Thu, Aug 13, 2009 at 12:57 PM, Tim Arnold wrote: > Hi, > I've got a python based system that has to run on hp unix and red hat linux. > The Python version on the HP is 2.4 and the version on the Linux box is 2.6. > There's nothing I can do about that. > > I think that means I must have two diffe

Re: coding for multiple versions of python

2009-08-13 Thread akonsu
On Aug 13, 12:57 pm, "Tim Arnold" wrote: > Hi, > I've got a python based system that has to run on hp unix and red hat linux. > The Python version on the HP is 2.4 and the version on the Linux box is 2.6. > There's nothing I can do about that. > > I think that means I must have two different libra