On 4 September 2014 21:09, Daniel Holth <[email protected]> wrote:
> For example, a wheel has these directories:
>
> pyramid-1.4.data/scripts/prequest
> pyramid-1.4.data/scripts/pshell
>
> With custom paths it could also have
>
> pyramid-1.4.data/spam/pharmacy.txt
>
> and "paths" : { "spam" : "$datadir/pyramid/junkmail" }
>
> pharmacy.txt would be installed into $datadir/pyramid/junkmail/pharmacy.txt
>
> It would also be appealing to be able to interpolate the package name
> and version into the "paths" dictionary...

Ah, I see what you're trying to achieve. No idea how useful it would
be in practice, most projects seem to get away without it, but maybe
they shouldn't have to.

But based on this, it's critical IMO that there's good docs on how to
find these files at runtime, otherwise projects will hard-code for the
simple case (installed in the system Python on Unix - I imagine it'll
be the Unix developers who will be the typical users of this feature)
and end up breaking in all other environments...

Paul
_______________________________________________
Distutils-SIG maillist  -  [email protected]
https://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to