Search the web
Sign In
New User? Sign Up
a-a-p-dev · A-A-P project development list (closed)
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Easy download   Message List  
Reply | Forward Message #23 of 43 |
Re: CVS repository (was: [a-a-p-dev] Easy download)


Aschwin Marsman wrote:

> > Hmm, I think the program currently requires Python 2. I might have an
> > attempt to make it work with Python 1.5 again (later). I'll check to
> > see if it's possible to detect the presence of python2. However, this
> > won't be possible in the scripts that start with
> > "#!/usr/bin/env python". Unless someone knows a trick.
>
> Isn't python 2 always installed at python2, or is this a RH invention?

It isn't on my system (FreeBSD): "python" is a hard link to either
"python1.5" or "python2.2".

I have now changed the test script to use "sys.executable". This means
the same python executable that was used to start the test is used to
execute the individual tests. Please try if it works now.

I also tried using "execfile()", but soon got bitten by side effects
from the test scripts (they don't end up in the directory they started
in). It's better to run each test in a clean python interpreter.
Hopefully the slowdown isn't too much.

The problem of using "python" in the first line of the script remains.
I can't put "python2" there, it would not work on my own system.
And I also can't put an command like "if redhat then..." there. What I
could to is check for running Python 1.5 and then try finding a
"python2" executable. However, restarting with that executable might
have a few side effects.

> > This really requires Python 2. The gettext support wasn't very good in
> > 1.5. I could detect this and skip the gettext support for 1.5 to work
> > around this. Until running into the next problem...
>
> Doesn't sound like a good idea.

I did avoid the trouble with gettext and indeed ran into the next
problem. It seems a local method has another way of handling the local
variables of the function it is defined in. I didn't find an easy way
to solve this, thus it's still not working with Python 1.5.

--
A law to reduce crime states: "It is mandatory for a motorist with criminal
intentions to stop at the city limits and telephone the chief of police as he
is entering the town.
[real standing law in Washington, United States of America]

/// Bram Moolenaar -- Bram@... -- http://www.moolenaar.net \\\
/// Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim \\\
\\\ Project leader for A-A-P -- http://www.a-a-p.org ///
\\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///



Wed Jul 10, 2002 8:55 am

vimboss
Offline Offline
Send Email Send Email

Forward
Message #23 of 43 |
Expand Messages Author Sort by Date

Hello, Is there a possibility to create a CVS store (another is also ok), in order to have an easy update possibility for a-a-p? In a fast changing project...
Aschwin Marsman - aYn...
marvinmarsman
Offline Send Email
Jul 5, 2002
5:15 am

... Today I have started using the CVS repository at SourceForge. You should be able to checkout the "Exec" module, which is the Recipe Executive. See...
Bram Moolenaar
vimboss
Offline Send Email
Jul 8, 2002
8:01 pm

Hi Bram, On Mon, 08 Jul 2002 22:01:06 +0200 ... Sourceforge allows you to upload keys via web interface only. 1. Login ( top/left at http://sf.net ) 2. Choose...
Thorsten Maerz
torte@...
Send Email
Jul 8, 2002
8:38 pm

Thorsten - ... Thanks for the hint! I didn't know this also worked for the CVS server. -- Why don't cannibals eat clowns? Because they taste funny. /// Bram...
Bram Moolenaar
vimboss
Offline Send Email
Jul 9, 2002
9:38 am

... This works, thanks. For updating, only cvs update in the Exec directory is needed, when you've already checked out a version. ... cvs commit is not enough?...
Aschwin Marsman - aYn...
marvinmarsman
Offline Send Email
Jul 9, 2002
5:23 am

... Yep, that's easy. ... That doesn't add new files or remove old files. The recipe I'm using for creating the .zip archive already contains a list of all...
Bram Moolenaar
vimboss
Offline Send Email
Jul 9, 2002
9:39 am

... Good point, should be easy (cvs add, cvs remove) ... For a SCM system, you don't want to change history. But I do agree, that a little misstake can be...
Aschwin Marsman - aYn...
marvinmarsman
Offline Send Email
Jul 10, 2002
7:02 am

... It isn't on my system (FreeBSD): "python" is a hard link to either "python1.5" or "python2.2". I have now changed the test script to use "sys.executable"....
Bram Moolenaar
vimboss
Offline Send Email
Jul 10, 2002
8:56 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help