This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vinay.sajip
Recipients carljm, msmhrt, vinay.sajip
Date 2012-10-04.16:29:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1349368180.49.0.768063876757.issue16116@psf.upfronthosting.co.za>
In-reply-to
Content
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, 'libs'))

The new line should read

            self.library_dirs.append(os.path.join(sys.base_exec_prefix, 'libs'))

Which will result in adding both directories to the library search path. This is a little untidy in the case when you're not in a venv, but it should still work. With that change, the link command now looks like

C:\Program Files\Microsoft Visual Studio 10.0\VC\BIN\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:C:\temp\venv\libs /LIBPATH:C:\Python33\libs /LIBPATH:C:\Python33 /LIBPATH:C:\temp\venv\PCbuild /EXPORT:PyInit__regex build\temp.win32-3.3\Release\Python3\_regex.obj build\temp.win32-3.3\Release\Python3\_regex_unicode.obj 
 /OUT:build\lib.win32-3.3\_regex.pyd /IMPLIB:build\temp.win32-3.3\Release\Python3\_regex.lib /MANIFESTFILE:build\temp.win32-3.3\Release\Python3\_regex.pyd.manifest

and the command succeeds.
History
Date User Action Args
2012-10-04 16:29:40vinay.sajipsetrecipients: + vinay.sajip, carljm, msmhrt
2012-10-04 16:29:40vinay.sajipsetmessageid: <1349368180.49.0.768063876757.issue16116@psf.upfronthosting.co.za>
2012-10-04 16:29:40vinay.sajiplinkissue16116 messages
2012-10-04 16:29:39vinay.sajipcreate