summaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules22
1 files changed, 22 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..b9f8430
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,22 @@
+#!/usr/bin/make -f
+
+export PYBUILD_NAME=iredis
+
+%:
+ dh ${@} --buildsystem=pybuild
+
+execute_before_dh_auto_clean:
+ cp debian/local/setup.py setup.py
+
+execute_after_dh_auto_clean:
+ rm -f setup.py
+
+execute_before_dh_auto_configure:
+ cp debian/local/setup.py setup.py
+
+execute_after_dh_auto_install:
+ mkdir -p debian/iredis/usr/lib/python3/dist-packages/iredis/data
+ cp iredis/data/iredisrc debian/iredis/usr/lib/python3/dist-packages/iredis/data/iredisrc
+
+override_dh_auto_test:
+ # disabled, doesn't work yet