Commit 62cfb6f5 authored by owsla's avatar owsla

Use .dll as library file extension on Cygwin and Windows.


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@823 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent f930c689
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)
......
#!/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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment