From 103189fe63e5efdba0e3e196d84a822d739d0e56 Mon Sep 17 00:00:00 2001 From: owsla Date: Thu, 12 Jul 2007 04:32:53 +0000 Subject: Use .dll as library file extension on Cygwin and Windows. git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@823 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109 --- rdiff-backup/CHANGELOG | 2 ++ rdiff-backup/rdiff_backup/compilec.py | 8 +++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/rdiff-backup/CHANGELOG b/rdiff-backup/CHANGELOG index 8472997..a681d2e 100644 --- a/rdiff-backup/CHANGELOG +++ b/rdiff-backup/CHANGELOG @@ -1,6 +1,8 @@ New in v1.1.12 (????/??/??) --------------------------- +Use .dll as library file extension on Cygwin and Windows. (Andrew Ferguson) + Avoid setting permissions to 000 because they're out of sync. (Andrew Ferguson) listxattr() can also throw EPERM error if not supported. (Andrew Ferguson) diff --git a/rdiff-backup/rdiff_backup/compilec.py b/rdiff-backup/rdiff_backup/compilec.py index 7dc9290..6ba8143 100755 --- a/rdiff-backup/rdiff_backup/compilec.py +++ b/rdiff-backup/rdiff_backup/compilec.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2.5 import sys, os from distutils.core import setup, Extension @@ -19,8 +19,10 @@ def get_libraries(): lib_dirs = filter(lambda x: x.startswith("lib"), build_files) assert len(lib_dirs) == 1, "No library directory or too many" libdir = lib_dirs[0] - clib = os.path.join("build", libdir, "C.so") - rsynclib = os.path.join("build", libdir, "_librsync.so") + if sys.platform == "cygwin" or os.name == "nt": libext = "dll" + else: libext = "so" + clib = os.path.join("build", libdir, "C." + libext) + rsynclib = os.path.join("build", libdir, "_librsync." + libext) try: os.lstat(clib) os.lstat(rsynclib) -- cgit v1.2.1