[pytango] 35/483: added no-doc option
Sandor Bodo-Merle
sbodomerle-guest at moszumanska.debian.org
Thu Sep 28 19:14:22 UTC 2017
This is an automated email from the git hooks/post-receive script.
sbodomerle-guest pushed a commit to annotated tag bliss_8.10
in repository pytango.
commit 7232b74e36a42664e42442014fec1947b753ae9d
Author: tiagocoutinho <tiagocoutinho at 4e9c00fd-8f2e-0410-aa12-93ce3db5e235>
Date: Thu May 26 15:52:43 2011 +0000
added no-doc option
git-svn-id: http://svn.code.sf.net/p/tango-cs/code/bindings/PyTango/trunk@16958 4e9c00fd-8f2e-0410-aa12-93ce3db5e235
---
setup.py | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/setup.py b/setup.py
index a967380..82e1939 100644
--- a/setup.py
+++ b/setup.py
@@ -88,16 +88,18 @@ class build(dftbuild):
user_options = dftbuild.user_options + \
[('with-pytango3', None, "distribute PyTango3 module"),
('without-spock', None, "spock IPython extension"),
- ('strip-lib', None, "strips the shared library of debugging symbols (Unix like systems only)"), ]
+ ('strip-lib', None, "strips the shared library of debugging symbols (Unix like systems only)"),
+ ('no-doc', None, "do not build documentation") ]
- boolean_options = dftbuild.boolean_options + ['with-pytango3', 'without-spock', 'strip-lib']
+ boolean_options = dftbuild.boolean_options + ['with-pytango3', 'without-spock', 'strip-lib', 'no-doc']
def initialize_options (self):
dftbuild.initialize_options(self)
self.with_pytango3 = None
self.without_spock = None
self.strip_lib = None
-
+ self.no_doc = None
+
def finalize_options(self):
dftbuild.finalize_options(self)
@@ -134,7 +136,10 @@ class build(dftbuild):
os.chdir(orig_dir)
def has_doc(self):
- if sphinx is None: return False
+ if self.no_doc:
+ return False
+ if sphinx is None:
+ return False
setup_dir = os.path.dirname(os.path.abspath(__file__))
return os.path.isdir(os.path.join(setup_dir, 'doc'))
@@ -390,7 +395,7 @@ def main():
# and then uncommenting this line. Someday maybe this will be
# automated...
extra_compile_args += [
- # '-includesrc/precompiled_header.hpp',
+# '-includesrc/precompiled_header.hpp',
]
#if not please_debug:
@@ -455,4 +460,4 @@ def main():
cmdclass = cmdclass)
if __name__ == "__main__":
- main()
\ No newline at end of file
+ main()
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pytango.git
More information about the debian-science-commits
mailing list