File: reproducible_build.patch

package info (click to toggle)
python-pysqlite2 2.7.0-1
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 796 kB
  • ctags: 1,034
  • sloc: ansic: 5,116; python: 3,340; makefile: 170; sh: 2
file content (32 lines) | stat: -rw-r--r-- 1,124 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Description: Make it possible to make build reproducible
 Modify DocBuilder command to use "sphinxopts" command line option for add
 parameters in the call to sphinx-build.
Author: Juan Picca <jumapico@gmail.com>
Last-Update: 2015-06-25
---
Index: python-pysqlite2/setup.py
===================================================================
--- python-pysqlite2.orig/setup.py	2015-08-16 16:13:42.535277587 +0200
+++ python-pysqlite2/setup.py	2015-08-16 16:13:42.531277876 +0200
@@ -84,10 +84,10 @@
 
 class DocBuilder(Command):
     description = "Builds the documentation"
-    user_options = []
+    user_options = [("sphinxopts=", None, "sphinx options")]
 
     def initialize_options(self):
-        pass
+        self.sphinxopts = ""
 
     def finalize_options(self):
         pass
@@ -98,7 +98,7 @@
         except OSError:
             pass
         os.makedirs("build/doc")
-        rc = os.system("sphinx-build doc/sphinx build/doc")
+        rc = os.system("sphinx-build %s doc/sphinx build/doc" % self.sphinxopts)
         if rc != 0:
             print "Is sphinx installed? If not, try 'sudo pip sphinx'."