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 cgohlke
Recipients aheider, cgohlke, christian.heimes, jdetaeye, koen, lemburg, loewis, mhammond, ntouran, zhirsch
Date 2009-10-18.19:29:44
SpamBayes Score 1.0824674e-14
Marked as misclassified No
Message-id <1255894187.24.0.804609270139.issue4120@psf.upfronthosting.co.za>
In-reply-to
Content
There are two levels of testing.

First, on a Windows development system with Visual Studio 2008, Python
2.6.2+, and the msvc9compiler_stripruntimes_regexp2.diff patch applied,
verify that the embedded manifest in distutil generated PYD extension
files is stripped of the WinSxS VC.CRT dependency and that the
extensions can still be imported. The attached script (testpyd.py)
builds a minimal extension (testpyd.pyd), searches for the WinSxS VC.CRT
dependency within the pyd file, and imports the extension. The script
should run without exception.

Second, verify that distutil generated PYD extensions can also be
imported on a test system, which has no Visual Studio 2008 runtime
installed in %WINDIR%\WinSxS:
Install Windows XP SP3, preferably in a virtual machine. Do not install
any additional programs or patches, which might install the Visual
Studio 2008 runtime. Then install Python 2.6.2+ using the "Install just
for me" option. Try import the testpyd extension built on the
development system: run "python.exe -c 'import testpyd'" in a directory
containing the testpyd.pyd file (not the Python installation directory
containing python.exe). This should work without exception.

Importing the testpyd extension built without the patch fails on the
test system:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: DLL load failed: This application has failed to start
because the application configuration is incorrect. Reinstalling the
application may fix this problem.

Tested with Python 2.6.3 for Windows 32-bit.
History
Date User Action Args
2009-10-18 19:29:47cgohlkesetrecipients: + cgohlke, lemburg, loewis, mhammond, christian.heimes, koen, aheider, zhirsch, jdetaeye, ntouran
2009-10-18 19:29:47cgohlkesetmessageid: <1255894187.24.0.804609270139.issue4120@psf.upfronthosting.co.za>
2009-10-18 19:29:46cgohlkelinkissue4120 messages
2009-10-18 19:29:45cgohlkecreate