diff options
author | Mats Wichmann <mats@linux.com> | 2019-02-06 09:10:21 -0700 |
---|---|---|
committer | Mats Wichmann <mats@linux.com> | 2019-02-06 09:10:21 -0700 |
commit | f04b4313cd4b96bdb01ff77294ca24ee9d9c0ebb (patch) | |
tree | 0a9641ac5903be06191886c478de6d6b149833f6 /doc/SConscript | |
parent | 6666adc9457f109ec25c9cd687f9eb0384392c73 (diff) | |
download | scons-git-f04b4313cd4b96bdb01ff77294ca24ee9d9c0ebb.tar.gz |
Fix problem where API doc gen misses some files
In doc/SConscript, the function in bootstrap.py to parse a
manifest was called with an scons path (#src/engine) but bootstrap
does not run in an scons context, it is run via subprocess.Popen.
Preprocess the path. Along the way, change the function to open
the file itself instead of being passed a list already read
from the file, update the comment, and clean some whitespace issues.
Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'doc/SConscript')
-rw-r--r-- | doc/SConscript | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/doc/SConscript b/doc/SConscript index ad3eb9ba8..51ef2db8e 100644 --- a/doc/SConscript +++ b/doc/SConscript @@ -326,7 +326,7 @@ else: # get included by the document XML files in the subdirectories. # manifest = File('MANIFEST').rstr() - src_files = bootstrap.parseManifestLines('.', open(manifest).readlines()) + src_files = bootstrap.parseManifestLines('.', manifest) for s in src_files: if not s: continue @@ -351,7 +351,7 @@ else: if not os.path.exists(os.path.join(build, doc, 'titlepage')): env.Execute(Mkdir(os.path.join(build, doc, 'titlepage'))) manifest = File(os.path.join(doc, 'MANIFEST')).rstr() - src_files = bootstrap.parseManifestLines(doc, open(manifest).readlines()) + src_files = bootstrap.parseManifestLines(doc, manifest) for s in src_files: if not s: continue @@ -571,14 +571,15 @@ if not epydoc_cli and not epydoc: else: # XXX Should be in common with reading the same thing in # the SConstruct file. - e = os.path.join('#src', 'engine') - manifest_in = File(os.path.join(e, 'MANIFEST.in')).rstr() - sources = bootstrap.parseManifestLines(e, open(manifest_in).readlines()) - - # Don't omit this as we need Platform.virtualenv for the examples to be run + # bootstrap.py runs outside of SCons, so need to process the path + e = Dir(os.path.join('#src', 'engine')).rstr() + sources = bootstrap.parseManifestLines(e, os.path.join(e, 'MANIFEST.in')) + + # Omit some files: + # + # Don't omit Platform as we need Platform.virtualenv for the examples to be run # sources = [x for x in sources if x.find('Platform') == -1] sources = [x for x in sources if x.find('Tool') == -1] - # XXX sources = [x for x in sources if x.find('Options') == -1] e = os.path.join(build, '..', 'scons', 'engine') |