This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author reowen
Recipients
Date 2004-02-19.18:30:26
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
I would like some way to load non-python code that is 
contained in packages. In other words, suppose I have:
maindir/
  helpdir/
    __init__.py
    index.html
    ...other python code and help files

I'd like some way to specify that the code in helpdir be 
loaded as code (compiled and the source discarded) but that 
the other files also be copied over. Presently includePackages 
only copies over python files.

The best workaround I've found so far is to specify the 
package in two separate arguments to buildapp: 
includePackages and resources. That copies everything 
(including the python source) and also compiles everything, 
so one ends up with both .py and .pyc files. I then look in 
that folder and discard the python source after 
bundlebuilder is finished. (I suppose that step is optional.)

Simply modifying includePackages so it included non-python 
files is my first thought. It might occasionally include stuff 
that wasn't wanted, but aside from on occasional README 
or something, I doubt it would amount to anything 
significant in most cases.
History
Date User Action Args
2008-01-20 09:59:32adminlinkissue900502 messages
2008-01-20 09:59:32admincreate