[Distutils] Override default build dir from setup.py

anatoly techtonik techtonik at gmail.com
Wed Dec 19 14:46:19 CET 2012


On Mon, Dec 3, 2012 at 8:33 PM, PJ Eby <pje at telecommunity.com> wrote:

> On Mon, Dec 3, 2012 at 2:05 AM, anatoly techtonik <techtonik at gmail.com>
> wrote:
> > Hi,
> >
> > I disliked that setup.py creates its own temp directories without any
> > private prefix, so I wanted to override this option in setup.py:
> >
> > $ setup.py build -h
> > ...
> > Options for 'build' command:
> >   --build-base (-b)  base directory for build library
> >
> > And the only way I could find to do this is through setup.cfg:
> >   http://docs.python.org/2/distutils/configfile.html
> >
> > Is it really the case or I overlooked some essential documentation part?
>
> There are user-level and global .cfg files as well:
>
>
> http://docs.python.org/release/2.7/install/index.html#location-and-names-of-config-files
>

For the history - there is a way to override setup.py command defaults as
it was found out by Jeremy Kloth:

    setup(options={'build': {'build_base': 'path/to/build/outputs'}},...)

Freshly related issue http://bugs.python.org/issue16729
-- 
anatoly t.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20121219/39db8047/attachment.html>


More information about the Distutils-SIG mailing list