[issue15367] build_ext in a venv on Windows assumes pyconfig.h in sys.exec_prefix + '\PC'

2012-07-16 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset a970054a93fb by Vinay Sajip in branch 'default':
Closes #15367: Corrected computation of include locations for source builds on 
Windows. Thanks to Richard Oudkerk for the bug report and patch.
http://hg.python.org/cpython/rev/a970054a93fb

--
nosy: +python-dev
resolution:  -> fixed
stage: needs patch -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15367] build_ext in a venv on Windows assumes pyconfig.h in sys.exec_prefix + '\PC'

2012-07-16 Thread Richard Oudkerk

Richard Oudkerk  added the comment:

Updated patch which does not fail test_distutils.

--
Added file: http://bugs.python.org/file26400/build_ext.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15367] build_ext in a venv on Windows assumes pyconfig.h in sys.exec_prefix + '\PC'

2012-07-16 Thread Richard Oudkerk

Richard Oudkerk  added the comment:

The attached patch works for me.

--
keywords: +patch
Added file: http://bugs.python.org/file26395/build_ext.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15367] build_ext in a venv on Windows assumes pyconfig.h in sys.exec_prefix + '\PC'

2012-07-16 Thread Richard Oudkerk

New submission from Richard Oudkerk :

On Windows I can't use a source build of Python to create a venv which will 
compile C extensions because pyconfig.h cannot be found.  For example

running build
running build_ext
building 'demo' extension
creating build
creating build\temp.win32-3.3
creating build\temp.win32-3.3\Release
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cl.exe /c 
/nologo /Ox /MD /W3 /GS- /DNDEBUG -IC:\Repos\cpython\include 
-IC:\Users\oudkerk\myenv\PC /Tcdemo.c /Fobuild\temp.win32-3.3\Release\demo.obj
demo.c
C:\Repos\cpython\include\Python.h(8) : fatal error C1083: Cannot open 
include file: 'pyconfig.h': No such file or directory
error: command '"c:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\BIN\cl.exe"' failed with exit status 2

The problem seems to be with the following line in 
distutils/command/build_ext.py:

self.include_dirs.append(os.path.join(sys.exec_prefix, 'PC'))

Inside a venv, sys.exec_prefix is the venv directory.

--
messages: 165590
nosy: sbt, vinay.sajip
priority: normal
severity: normal
stage: needs patch
status: open
title: build_ext in a venv on Windows assumes pyconfig.h in sys.exec_prefix + 
'\PC'
type: behavior
versions: Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com