[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32

2012-10-23 Thread Masami HIRATA
Masami HIRATA added the comment: > So you agree that it's working? Yes, the patch works correctly. Thank you! -- ___ Python tracker ___ __

[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32

2012-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: >+- Issue #16116: Fix include and library paths to be correctwhen building C Spaces. -- nosy: +serhiy.storchaka ___ Python tracker ___ _

[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32

2012-10-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 43f537339107 by Vinay Sajip in branch '3.3': Issue #16116: Now uses corrected include and library paths when building C extensions in a venv. http://hg.python.org/cpython/rev/43f537339107 New changeset 5e9f656c3d67 by Vinay Sajip in branch 'default

[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32

2012-10-23 Thread Vinay Sajip
Vinay Sajip added the comment: So you agree that it's working? The include path has the venv's include in it, and the c:\Python33\libs inclusion allows the linking to work. I'll commit the changes to 3.3, 3.4 and close the issue shortly. -- ___ Pyth

[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32

2012-10-23 Thread Masami HIRATA
Masami HIRATA added the comment: I attached new log file. (generated with 3.3.0 + your patch) -- Added file: http://bugs.python.org/file27685/Python33_with_venv_3.txt ___ Python tracker

[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32

2012-10-23 Thread Vinay Sajip
Changes by Vinay Sajip : -- keywords: +patch Added file: http://bugs.python.org/file27680/c89378f64819.diff ___ Python tracker ___ ___

[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32

2012-10-23 Thread Vinay Sajip
Vinay Sajip added the comment: Added fixes in my sandbox repo. Please verify. -- hgrepos: +155 ___ Python tracker ___ ___ Python-bugs-

[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32

2012-10-23 Thread Vinay Sajip
Vinay Sajip added the comment: Sorry, not yet - I haven't been able to spend much time looking at it, but hopefully I will be able to before too long. -- ___ Python tracker ___

[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32

2012-10-22 Thread Masami HIRATA
Masami HIRATA added the comment: > Could well be a similar problem; I'll look into it. Is there any progress? -- ___ Python tracker ___ __

[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32

2012-10-05 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32

2012-10-05 Thread Vinay Sajip
Vinay Sajip added the comment: > I have tested the workaround and it works correctly. > Please see attached log file. Thanks for the update. > btw, it seems to me that "-IC:\Python33\include -IC:\Python33\include" > should be "-IC:\Users\msmhrt\mypython\3.3.0\include -IC:\Python33\include". Co

[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32

2012-10-05 Thread Masami HIRATA
Masami HIRATA added the comment: btw, it seems to me that "-IC:\Python33\include -IC:\Python33\include" should be "-IC:\Users\msmhrt\mypython\3.3.0\include -IC:\Python33\include". What do you think about it? -- ___ Python tracker

[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32

2012-10-05 Thread Masami HIRATA
Masami HIRATA added the comment: I have tested the workaround and it works correctly. Please see attached log file. -- Added file: http://bugs.python.org/file27429/Python33_with_venv_2.txt ___ Python tracker __

[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32

2012-10-04 Thread Vinay Sajip
Vinay Sajip added the comment: If you like, you can make the added line conditional on "if sys.base_exec_prefix != sys.prefix", which is the form the actual fix is likely to take. Thus: if sys.base_exec_prefix != sys.prefix: self.library_dirs.append(os.path.join(sys

[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32

2012-10-04 Thread Vinay Sajip
Vinay Sajip added the comment: Since I expect it may be some time before the next Python release is out, ISTM a temporary workaround would be to add a line following line 192 of Lib\distutils\command\build_ext.py, which reads self.library_dirs.append(os.path.join(sys.exec_prefix, '

[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32

2012-10-04 Thread Carl Meyer
Carl Meyer added the comment: (Actually, to match virtualenv's fix it should add the paths based on both exec_prefix and base_exec_prefix, if they are different.) -- ___ Python tracker

[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32

2012-10-04 Thread Carl Meyer
Carl Meyer added the comment: On cursory inspection, I agree that this is precisely what the "if win32" block in `virtualenv_embedded/distutils-init.py` is intended to fix, and it seems to me the correct fix is likely to just make the equivalent fix directly in distutils: change the library_di

[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32

2012-10-04 Thread Vinay Sajip
Vinay Sajip added the comment: A little more investigation suggests that the disparity is due to some code in virtualenv's version of distutils.__init__.py, which adds the "\Libs" entry which allows the virtualenv version to work. Adding Carl Meyer as nosy, as I'd like his advice on what the be

[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32

2012-10-04 Thread Vinay Sajip
Vinay Sajip added the comment: Comparing the link command which works: C:\Program Files\Microsoft Visual Studio 10.0\VC\BIN\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:c:\python33\Libs /LIBPATH:C:\temp\venv2\libs /LIBPATH:C:\temp\venv2\PCbuild /EXPORT:PyInit__regex build\temp.win32-3.3\Rel

[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32

2012-10-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- components: +Windows nosy: +vinay.sajip priority: normal -> critical versions: +Python 3.4 ___ Python tracker ___ _

[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32

2012-10-03 Thread Masami HIRATA
Changes by Masami HIRATA : Added file: http://bugs.python.org/file27399/Python33_without_venv.txt ___ Python tracker ___ ___ Python-bugs-list

[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32

2012-10-03 Thread Masami HIRATA
Changes by Masami HIRATA : Added file: http://bugs.python.org/file27398/Python33_with_virtualenv.txt ___ Python tracker ___ ___ Python-bugs-li

[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32

2012-10-03 Thread Masami HIRATA
New submission from Masami HIRATA: I'm trying to install C extension modules inside a venv. It works outside a venv and inside a virtualenv-1.8.2 but breaks inside the venv. OS: Windows 7 Starter Edition SP1 (32-bit) Python: 3.3.0 (python-3.3.0.msi) Compiler: Microsoft Visual C++ 2010 Express S