+
+runtime_template = 'Source: "%s"; DestDir: "{code:GetPythonDir}"; CopyMode: alwaysskipifsameorolder; Flags: uninsneveruninstall; Components: core'
+
+def get_runtime_dlls(PYVER):
+ if PYVER == "py24":
+ source = [ r"distrib\msw\msvcr71.dll",
+ r"distrib\msw\msvcp71.dll" ]
+ else:
+ source = [ r"distrib\msw\MSVCRT.dll",
+ r"distrib\msw\MSVCIRT.dll",
+ r"distrib\msw\MSVCP60.dll" ]
+ DLLs = [runtime_template % dll for dll in source]
+ return '\n'.join(DLLs)
+
+