[issue7885] test_distutils fails if Python built in separate directory

Neil Schemenauer report at bugs.python.org
Mon Feb 8 17:52:33 CET 2010


New submission from Neil Schemenauer <nas-python at arctrix.com>:

Lib/test/test_distutils.py crashes if Python was built in a directory other than the source directory.  Using a separate build directory is handy if you are building Python with different sets of configure options since you only need one copy of the source. For example, in the source directory:

$ mkdir build-opt
$ cd build-opt
$ ../configure
$ make
$ cd ..
$ mkdir build-debug
$ cd build-debug
$ ../configure --with-pydebug
$ make 

I fixed a similar problem in rev 69304 but now it is broken again.  I get:

/tmp/tmpbxrmiB/xxmodule.c:17:20: error: Python.h: No such file or directory

Probably it is looking in the wrong directory for Python.h (assuming that the cwd is the top-level directory of the source).

----------
assignee: tarek
components: Tests
messages: 99054
nosy: nascheme, tarek
priority: normal
severity: normal
stage: needs patch
status: open
title: test_distutils fails if Python built in separate directory
type: behavior
versions: Python 2.7, Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7885>
_______________________________________


More information about the Python-bugs-list mailing list