classification
Title: distutils doesn't support out-of-source builds
Type: enhancement Stage:
Components: Distutils2 Versions: 3rd party
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: tarek Nosy List: BreamoreBoy, anacrolix, eric.araujo, rpetrov, sdirector, tarek
Priority: normal Keywords: patch

Created on 2008-01-22 00:31 by sdirector, last changed 2011-10-04 03:01 by anacrolix.

Files
File name Uploaded Description Edit
distutils.patch sdirector, 2008-01-22 00:31 Patch implementing --src-dir
Messages (7)
msg61471 - (view) Author: Monty Taylor (sdirector) Date: 2008-01-22 00:31
I've been using distutils as part of a larger automake-managed project.
One of the functions that automake provides is "make distcheck" which it
has been especially hard to get distutils to play along with. 

So I added a src-dir option to allow for passing src dir to the build.
msg82268 - (view) Author: Roumen Petrov (rpetrov) Date: 2009-02-16 20:26
Some other issues supersede this one ... and commits from Neil
Schemenauer resolve this issue may be only for me :).
Please see as example issue4151 .
msg109822 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2010-07-10 06:23
Roumen's comments suggest that this should be closed.
Monty, do you disagree?
msg116935 - (view) Author: Mark Lawrence (BreamoreBoy) Date: 2010-09-20 13:45
There's been no reply to msg109822, so should this be closed with the Superseder field updated or what?
msg116961 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2010-09-20 18:49
I suspect so, but I leave it to Eric to decide.
msg116999 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2010-09-20 23:03
#4151 and friends were about building Python, this is about building Python projects with distutils.  As a feature request, I’m reassigning to distutils2.

Monty: Would you like to update your patch?  distutils is frozen except for bug fixes, we work on the next gen in parallel.  See distutils2.notmyidea.org for developer resources and link to our repository.
msg117001 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2010-09-20 23:11
Let me add that distutils very much wants you to run the setup script from its parent directory, contrary to autotools which can run from another directory, so it could be that other parts than build* commands are affected.

That said, specifying the target build dir is supported; in other words, don’t run “../setup.py build --src-dir=..” but try “./setup.py build --build-dir some/where”.

I still have to do a bit of research about make distclean.  Some options like build_ext.inplace are not affected by build-dir, so distclean is not as easy as “rm -rf $build_dir”.
History
Date User Action Args
2011-10-04 03:01:44anacrolixsetnosy: + anacrolix
2010-09-29 23:46:21eric.araujosetversions: + 3rd party, - Python 2.6, Python 2.5, Python 3.1, Python 2.7, Python 3.2
2010-09-20 23:11:34eric.araujosetmessages: + msg117001
2010-09-20 23:03:30eric.araujosetnosy: sdirector, tarek, eric.araujo, rpetrov, BreamoreBoy
messages: + msg116999
components: + Distutils2, - Build, Distutils
versions: + Python 2.6, Python 2.5, Python 3.1, Python 2.7
2010-09-20 18:49:50terry.reedysetnosy: - terry.reedy
2010-09-20 18:49:35terry.reedysetmessages: + msg116961
2010-09-20 13:45:16BreamoreBoysetnosy: + BreamoreBoy, eric.araujo
messages: + msg116935
2010-07-10 06:23:41terry.reedysetnosy: + terry.reedy

messages: + msg109822
versions: + Python 3.2, - Python 2.6
2009-02-16 20:26:20rpetrovsetnosy: + rpetrov
messages: + msg82268
2009-02-16 16:30:45akitadasetnosy: + tarek
components: + Build
assignee: tarek
2008-01-22 00:57:14christian.heimessetpriority: normal
keywords: + patch
type: enhancement
versions: + Python 2.6, - Python 2.5
2008-01-22 00:31:57sdirectorcreate