[prev in list] [next in list] [prev in thread] [next in thread]
List: gentoo-dev
Subject: Re: [gentoo-dev] [PATCH] distutils-r1: set install paths via setup.cfg rather than argv.
From: Gilles Dartiguelongue <eva () gentoo ! org>
Date: 2014-08-21 13:25:42
Message-ID: 74D30757-3E78-4B1C-A243-F08338D14F58 () gentoo ! org
[Download RAW message or body]
Le 21 août 2014 à 15:20, Michał Górny <mgorny@gentoo.org> a écrit :
> Use generated setup.cfg file to propagate install paths rather than
> passing them via command-line arguments whenever possible, making it
> possible to call special install commands without forcing the main
> 'install' command.
>
> For example, if setup.py defines install_doc command that reuses prefix
> from install, to use it you'd have to call either:
>
> esetup.py install --root="${D}" install_doc
>
> or:
>
> distutils-r1_python_install install_doc
>
> both of them forcing (re-)install of the whole package implicitly.
>
> Instead, we can reuse the setup.cfg file that was added specifically to
> solve a similar issue with build paths. Put the default root, byte-
> compilation options and script path (if applicable) there.
> distutils-r1_python_install still carries --root override for
> intermediate root install though.
>
> Thanks to this, you can run the fore-mentioned command like this:
>
> esetup.py install_doc
> ---
Looks great.
--
Gilles Dartiguelongue <eva@gentoo.org>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic