[Distutils] Get install prefix for module at runtime

Tarek Ziadé ziade.tarek at gmail.com
Tue Sep 15 18:37:47 CEST 2009


On Tue, Sep 15, 2009 at 6:29 PM, P.J. Eby <pje at telecommunity.com> wrote:
> At 05:38 PM 9/15/2009 +0200, Wolodja Wentland wrote:
>>
>> How is this normally solved?
>
> Installing the data with one project:
> http://peak.telecommunity.com/DevCenter/setuptools#including-data-files
>
>
> Retrieving it from the same or a different project:
> http://peak.telecommunity.com/DevCenter/PkgResources#basic-resource-access
>
>
> (Note: this assumes that the data files in question are static, i.e.,
> constant data which does not change.  If by "data" you mean files that are
> actually changed by the programs involved, this is *not* the way to do it.)

Note #2: Beware that this also assumes that you use Setuptools instead
of Distutils for your project.

Things like "include_package_data" are not part of the Distutils project.

I'll answer for a Distutils solution as soon as I have some time
(hopefully tonight)

Tarek


More information about the Distutils-SIG mailing list