Directory Structure for Distutils

Peter Klyushkin petrk at pochtamt.ru
Tue Jul 22 03:49:52 EDT 2003


Hello, Thomas!

>>>>> "TG" == Thomas Güttler writes:

 TG> Peter Klyushkin wrote:

 >> Hello, Thomas!

 TG>>> One thing is still unclear: How can I copy non python files
 TG>>> into the destination?  There is a directory called "gif" which
 TG>>> needs to be in the directory of the my module.

 >> Take a look at ResourcePackage.  It isn't exactly what you want
 >> but it is exactly for your purpose.

 TG> Thank you for this link, but I don't want the images to become
 TG> python source.

 TG> Still looking for a solution ...

In this case you have to write setup.py with subclassed Distutils'
install_data providing needed functionality.  Additionally you'll have
to keep a configuration file in the same directory as your Python
modules which stores paths to images.  Real paths will be written to
it on installation.

For examples on subclassing install_data see setup.py's of well known
Python software - I've seen such examples, but don't remember
where. :-)


-- 
                                                             C'ya, Peter.
		      --=[petrk at pochtamt.ru]=--
        --=[ICQ 89449080]=--=[Jabber dassburger at jabber.ru]=--




More information about the Python-list mailing list