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 silverbacknet
Recipients silverbacknet
Date 2012-10-21.17:56:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1350842175.59.0.919553926658.issue16296@psf.upfronthosting.co.za>
In-reply-to
Content
Once I got my broken environment fixed, this was the only thing that didn't work. The bug is that VS 2010 no longer creates a manifest by default, despite the documentation, and there are confirmation posts around the internet. /Manifest has to be forced starting with VS 2010. Here is a patch to fix that:


--- Lib/distutils/msvc9compiler.py    2011-08-14 11:17:42.000000000 -0700
+++ Lib/distutils/msvc9compiler.py    2012-10-21 10:38:42.257682200 -0700
@@ -411,10 +411,16 @@
                                           '/Z7', '/D_DEBUG']

         self.ldflags_shared = ['/DLL', '/nologo', '/INCREMENTAL:NO']
+        if self.__version >= 10:
+            self.ldflags_shared = ['/DLL', '/nologo', '/INCREMENTAL:NO', '/Manifest']
         if self.__version >= 7:
             self.ldflags_shared_debug = [
                 '/DLL', '/nologo', '/INCREMENTAL:no', '/DEBUG', '/pdb:None'
                 ]
+            if self.__version >= 10:
+                self.ldflags_shared = [
+                '/DLL', '/nologo', '/INCREMENTAL:NO', '/DEBUG', '/pdb:None', '/Manifest'
+                ]
         self.ldflags_static = [ '/nologo']

         self.initialized = True
History
Date User Action Args
2012-10-21 17:56:15silverbacknetsetrecipients: + silverbacknet
2012-10-21 17:56:15silverbacknetsetmessageid: <1350842175.59.0.919553926658.issue16296@psf.upfronthosting.co.za>
2012-10-21 17:56:15silverbacknetlinkissue16296 messages
2012-10-21 17:56:15silverbacknetcreate