summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/MANIFEST.in1
-rw-r--r--common/changes/bug_5896_include-ddocs-source-in-sdist2
-rw-r--r--common/setup.py18
3 files changed, 3 insertions, 18 deletions
diff --git a/common/MANIFEST.in b/common/MANIFEST.in
index 7f6148ef..8e5a2342 100644
--- a/common/MANIFEST.in
+++ b/common/MANIFEST.in
@@ -2,3 +2,4 @@ include pkg/*
include versioneer.py
include LICENSE
include CHANGELOG
+recursive-include src/leap/soledad/common/ddocs *
diff --git a/common/changes/bug_5896_include-ddocs-source-in-sdist b/common/changes/bug_5896_include-ddocs-source-in-sdist
new file mode 100644
index 00000000..94188f5e
--- /dev/null
+++ b/common/changes/bug_5896_include-ddocs-source-in-sdist
@@ -0,0 +1,2 @@
+ o Include couch design docs source files in source distribution and only
+ compile ddocs.py when building the package (#5896).
diff --git a/common/setup.py b/common/setup.py
index 6ee166ef..3650a15a 100644
--- a/common/setup.py
+++ b/common/setup.py
@@ -229,23 +229,6 @@ class cmd_develop(_cmd_develop):
# versioneer powered
-old_cmd_sdist = cmdclass["sdist"]
-
-
-class cmd_sdist(old_cmd_sdist):
- """
- Generate 'src/leap/soledad/common/ddocs.py' which contains couch design
- documents scripts.
- """
- def run(self):
- old_cmd_sdist.run(self)
-
- def make_release_tree(self, base_dir, files):
- old_cmd_sdist.make_release_tree(self, base_dir, files)
- build_ddocs_py(basedir=base_dir)
-
-
-# versioneer powered
old_cmd_build = cmdclass["build"]
@@ -257,7 +240,6 @@ class cmd_build(old_cmd_build):
cmdclass["freeze_debianver"] = freeze_debianver
cmdclass["build"] = cmd_build
-cmdclass["sdist"] = cmd_sdist
cmdclass["develop"] = cmd_develop