Sorry to continue the monologue; I hope someone finds it useful: I'm
experimenting with creating MANIFEST from all the regular files listed
in bzr-manifest.txt. That is apparently "cleansed" by these lines in
setup.py:
scrub_datafiles = ['leo/extensions', '_build', 'leo/test', 'leo/
plugins/test', 'leo/doc/html']
for dirpath, dirnames, filenames in os.walk(leo_dir):
# Ignore dirnames that start with '.'
for i, dirname in enumerate(dirnames):
if dirname.startswith('.'): del dirnames[i]
if '__init__.py' in filenames:
fsplit = fullsplit(dirpath)
packages.append('.'.join(fsplit))
elif filenames:
if not any(pat in dirpath for pat in scrub_datafiles):
data_files.append([dirpath, [os.path.join(dirpath, f) for
f in filenames]])
Later, when I open LeoDocs.leo from the result of the rpm install, I
get these complaints:
reading: /usr/lib/python2.6/site-packages/leo/doc/LeoDocs.leo
can not open: '@file /usr/lib/python2.6/site-packages/leo/doc/html/
front.html'
reading @edit: conf.py
can not open @edit /usr/lib/python2.6/site-packages/leo/doc/html/
conf.py
reading @edit: leo_toc.html.txt
can not open @edit /usr/lib/python2.6/site-packages/leo/doc/html/
leo_toc.html.txt
Have those been mistakenly purged by including "leo/doc/html" in
scrub_datafiles?
- Stephen
On Mar 15, 12:31 pm, thyrsus <[email protected]> wrote:
> So I'm obviously new to this distutils stuff. An earlier run of
> "python setup.py bdist_rpm" created a MANIFEST file with only *.py
> files and leo/scripts/leo
> I manually added to that the results of "find leo \( -name "*.ui" -o -
> name "*.leo" \) -print; find leo/Icons -print" and that seems to have
> gotten them included in the .rpm package. Are there more non-python
> files I should manually add to MANIFEST?
>
> - Stephen
>
> On Mar 15, 2:08 am, thyrsus <[email protected]> wrote:
>
> > More trouble: the setup.py excludes files in directories with an
> > __init__.py from the data_files list. Instead, there's a line
>
> > package_data = {'leo.plugins' : datapats },
>
> > where datapats is a list including '*.ui'. Unfortunately, this is
> > insufficient to convince build_rpm to include those files in the
> > package. I tried adding
>
> > package_dir = {'leo.plugins': 'leo/plugins' },
>
> > but that didn't help. I see there's magic code to get windows to
> > work; is something similarly obscure necessary to convince rpm to
> > function?
>
> > - Stephen
>
> > On Mar 15, 12:22 am, thyrsus <[email protected]> wrote:
>
> > > I just attempted to build an rpm for 4.7.1-final with
>
> > > python setup.py bdist_rpm
>
> > > ...which failed when it encounted syntax errors in plugins/
> > > ConceptualSort.py and plugins/LeoN.py (the rpm attempts to
> > > include .pyc and .pyo files files). The python is 2.6.2 in the Fedora
> > > 12 environment. I'm thinking of "publishing" this, and I'd like
> > > recommendations as to whether to (a) fix the syntax, when I see that
> > > the unitTest.leo declares ConceptualSort.py as "tkfail" and LeoN.py as
> > > "dead", or (b) comment out all the contents of the two file, so as to
> > > document their presence, but make them effective no-ops. I'm not sure
> > > that will really make everything happy; your advice is appreciated.
>
> > > - Stephen
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/leo-editor?hl=en.