[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] Installing on cygwin -- add .exe extension when needed

From: Daniel Rall <dlr_at_finemaltcoding.com>
Date: 2002-10-16 18:08:29 CEST

=?UTF-8?B?QnJhbmtvIMSMaWJlag==?= <brane@xbc.nu> writes:

> egor duda wrote:
>
> >Index: ./build/gen_make.py
> >===================================================================
> >--- ./build/gen_make.py
> >+++ ./build/gen_make.py Wed Oct 16 17:01:58 2002
> >@@ -13,7 +13,7 @@
> > class MakefileGenerator(gen_base.GeneratorBase):
> > _extension_map = {
>
> >- ('exe', 'target'): '',
> >+ ('exe', 'target'): '$(EXEEXT)',
> > ('exe', 'object'): '.o',
> > ('lib', 'target'): '.la',
> > ('lib', 'object'): '.lo',
> >
>
> Uh, how do you expect this to work? Python doesn't expand environment
> variables like that.

Something like this would work assuming EXEEXT really is an env var (I
haven't been paying enough attention to know one way or another):

>>> import os
>>> os.environ.get('EXEEXT', 'exe')
'exe'

This is probably pretty obvious to anyone who knows Python, but I'm
still learning it. :)

-- 
Daniel Rall <dlr@finemaltcoding.com>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Oct 16 18:09:05 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.