I wrote a simple find_package_data function:
   http://svn.pythonpaste.org/Paste/trunk/paste/util/finddata.py

(if you want to use it, you should copy it into your own source)

At first I made it just generate a list of wildcards with all the 
(non-package) subdirectories enumerated, e.g., 'mypackage': ['*.pt', 
'templates/*.pt', 'templates/admin/*.pt'].  But I decided it's too easy 
to miss files that way.  So now it enumerates everything except files 
and directories you exclude with patterns (or with explicit paths). 
There's still no way to include empty directories.

You use it like:

...
     package_data=find_package_data()

Which should give a reasonable set.  Pass show_ignored=True to see more 
of what it is doing.

-- 
Ian Bicking  /  [EMAIL PROTECTED]  /  http://blog.ianbicking.org
_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to