[Distutils] Fwd: add install_paths.json to .egg-info and .dist-info directory

Nick Coghlan ncoghlan at gmail.com
Tue May 12 17:53:47 CEST 2015


On 13 May 2015 at 00:44, Daniel Holth <dholth at gmail.com> wrote:
> Cross-posting to distutils-sig:
>
> As a prerequisite to adding useful finer-grained installations to
> setuptools & wheel, I propose adding install_paths.json as a metadata
> file within the egg-info and dist-info directories, initially
> containing only the current paths as a key - value mappping, for
> example it might contain the following keys:
>
> base
> data
> headers
> lib
> libbase
> platbase
> platlib
> purelib
> scripts
> userbase (~/.local)
> usersite (~/.local/lib/python...)
>
> These are the existing paths present as properties on the
> distutils/setuptools install command. Later, when we add a finer
> grained install scheme, those paths would also land in the new
> install_paths.json file.

+1, this sounds like a good incremental step forward to me. I'm not
sure how best to document it, though. Perhaps have this initial
increment as an implementation detail, and then formalise it in the
next version of the wheel spec.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia


More information about the Distutils-SIG mailing list