Note that using a MANIFEST file might be a faster way:

http://docs.python.org/distutils/sourcedist.html#manifest-template


2012/4/5 Benny Malengier <benny.malengier@gmail.com>


2012/4/5 Rob Healey <robhealey1@gmail.com>
Dear Benny:

Ok, the files have been moved back to where they belong as they were!

And I did not commit the extra __init__.py files so they are not there anymore....

An __init__ file indicates if a directory is a python module, or just a directory holding data.
So in setup.py, you must indicate this. If you use

    config.add_subpackage('tests')

then directory tests must have a __init__ file to actually be included.
We don't want the plugins to have an __init__.py, because then top level gramps could import a plugin, while we want the gpr.py files to determine what plugins are actually loaded.

So, for the plugins, and for other files , see section 2.6 and 2.7:

http://docs.python.org/distutils/setupscript.html#installing-package-data

So I would assume in the src directory renamed to gramps we have a setup.py
setup(...,
      package_data={'gramps': ['plugins/*.py', 'plugins/lib/*.py',  ...etc ...]},
      )
Would have to try myself to know if that works.

Benny
 


Sincerely yours,
Rob G. Healey


On Wed, Apr 4, 2012 at 7:05 AM, Benny Malengier <benny.malengier@gmail.com> wrote:
Rob,

I don't think you fully understand how distutils is supposed to work.
The thing we install is in the current src directory, which we rename to gramps.
The top level stuff, is about our repository. Hence, things like COPYING, TODO, ... are correctly placed there, and have no sense in doc, which is about the official documentation.

Benny

2012/3/23 Rob Healey <robhealey1@gmail.com>
Greetings:

In trying to clean up some files in trunk and the new geps for creating the setup.py file, can I have some leeway in moving some files?  For instance, these files:

COPYING,
FAQ
NEWS
RELEASE_NOTES
TestPlan.txt
TODO

Can they be moved into the docs directory?  I know that the NEWS file is a list of what has been changed from one release to the next, but why don't we use the ChangeLog file as most projects already do???

--
Sincerely yours,
Rob G. Healey



------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Gramps-devel mailing list
Gramps-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gramps-devel





--
Sincerely yours,
Rob G. Healey