On Tuesday, December 27, 2005 Ralf W. Grosse-Kunstleve wrote: > Sorry, the manifests are new to me. How can I check if the manifest is > correctly embedded? > FWIW: I already tried copying the manifest into the directory with the > extensions.
To check if you have a manifest you need to use a tool like "Resource Hacker" or "XN Resource Editor". http://www.wilsonc.demon.co.uk/d10resourceeditor.htm Where did you get that manifest? You need one listing the MSVC runtime (not one which enables the XP look). Of course, it must be named exactly like you dll/pyd, with an additional .manifest extension. <?xml version='1.0' encoding='UTF-8' standalone='yes'?> <assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'> <dependency> <dependentAssembly> <assemblyIdentity type='win32' name='Microsoft.VC80.CRT' version='8.0.50608.0' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' /> </dependentAssembly> </dependency> </assembly> > In case it matters, here are the compiler and liker switches I am using > (commands issued by scons): > cl /nologo /D_CRT_SECURE_NO_DEPRECATE /wd4996 /Zm800 /MD /GR /EHsc > /DBOOST_DISABLE_THREADS /DNDEBUG /Ox -DBOOST_PYTHON_MAX_BASES=2 > -DBOOST_PYTHON_SOURCE > link /nologo /incremental:no /dll /out:lib\cctbx_math_ext.pyd > /implib:lib\cctbx_math_ext.lib /LIBPATH:lib > Am I missing some magic new switch? Add /manifest to the linker options. This will generate cctbx_math_ext.pyd.manifest either in the output folder or in the intermediate one. Then you need to run mt.exe to embedd the manifest: mt.exe /outputresource:"cctbx_math_ext.pyd;#2" /manifest cctbx_math_ext.pyd.manifest _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com