summaryrefslogtreecommitdiff
path: root/rdiff-backup/src/compilec.py
diff options
context:
space:
mode:
Diffstat (limited to 'rdiff-backup/src/compilec.py')
-rwxr-xr-xrdiff-backup/src/compilec.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/rdiff-backup/src/compilec.py b/rdiff-backup/src/compilec.py
new file mode 100755
index 0000000..275f57a
--- /dev/null
+++ b/rdiff-backup/src/compilec.py
@@ -0,0 +1,15 @@
+#!/usr/bin/env python
+
+import sys, os
+from distutils.core import setup, Extension
+
+assert len(sys.argv) == 1
+sys.argv.append("build")
+
+setup(name="CModule",
+ version="0.9.0",
+ description="rdiff-backup's C component",
+ ext_modules=[Extension("C", ["cmodule.c"])])
+
+assert not os.system("mv build/lib.linux-i686-2.2/C.so .")
+assert not os.system("rm -rf build")