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

Re: [PATCH] dynamically link swig runtime on windows (Can I commit this?)

From: Russell Yanofsky <rey4_at_columbia.edu>
Date: 2003-08-07 22:52:38 CEST

Russell Yanofsky wrote:
> Branko Čibej wrote:
>> Russell Yanofsky wrote:
>>
>>> (Generator.get_win_libs): add perl56.lib library for perl
>>> modules
>>>
>> Is there a remote possibility that we might detect the version of
>> Perl, instead of hardcoding support for 5.6? For example, I have
>> version 5.8 on my box. Running "perl -e 'print $]'" and converting
>> the output would do just fine.

"perl -e 'print $]'" returns "5.006001" for me. What's the most reliable way
to derive perl56.lib from that? I'm thinking:

  _re_perl_version = re.compile(r'(\d+)\.(\d{3})')

  def perl_library(version):
    match = _re_perl_version.match(version)
    return 'perl' + match.group(1) + str(int(match.group(2))) + '.lib'

  perl_library('5.006001')

Does this work on perl 5.8?

- Russ

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Aug 7 22:54:11 2003

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.