Re: py2exe/distutils: how to include a tree of files?



On 2007-08-25, Carl Banks <pavlovevidence@xxxxxxxxx> wrote:
On Aug 24, 5:46 pm, Grant Edwards <gra...@xxxxxxxx> wrote:
On 2007-08-24, Grant Edwards <gra...@xxxxxxxx> wrote:

I'm packaging up a python program and need to include an entire
directory tree in the distribution.

I've cobbled together something using package_dir/package_data
and os.path.walk(), but it seems like a bit of a kludge...

"data_files" is documented in the official distutils
documentation.

It took quite a while, but I eventually found it. Having the
documentation split up into dozens and dozens of small pages
sure makes it hard to find things. I don't really understand
what the advantage for splitting up documentation into
screen-sized chunks is supposed to be -- all the web browsers
I've ever seen can scroll. One page per module or chapter
sure would make it easier to search...

(Yes, in regular distutils you do have to pretty much walk the data
directories to get your data.)

That's what I ended up doing. Fortunately os.walk() makes it
fairly easy. :)

--
Grant Edwards grante Yow! Nipples, dimples,
at knuckles, NICKLES,
visi.com wrinkles, pimples!!
.



Relevant Pages

  • Re: py2exe/distutils: how to include a tree of files?
    ... documentation on py2exe at all. ... at the distutils documentation for details, ... 'samples' directory tree that I packaged with an app: ...
    (comp.lang.python)
  • Re: Licensing issues
    ... documentation and/or other materials provided with the distribution. ... All of the documentation and software included in the 4.4BSD and 4.4BSD-Lite ... All advertising materials mentioning features or use of this software ... the phrase ``this text'' refers to portions ...
    (freebsd-questions)
  • Re: [PHP] Creating new site
    ... The license for CodeIgniter is pretty simple. ... its documentation, with or without modification, for any purpose, ... provided with the distribution. ...
    (php.general)
  • Distribution security
    ... Recently there have been several occasions where folks complained about one thing or another in the documentation, in particular when not using the "official" documentation via the web. ... there is an ironclad moat surrounding U Delaware and the official products can be extracted only directly or via links at www.ntp.org. ... The documentation included in a particular distribution applies only to that distribution and may be different in minor ways from another distribution. ...
    (comp.protocols.time.ntp)
  • Re: The Problems of TeX
    ... many TeX distributions did not come with it - OzTeX is one (in ... OzTeX didn't even have Metafont IIRC). ... by the standard distribution is in for an awkward time. ... silly because it's purely down to a lack of decent documentation. ...
    (comp.text.tex)