[Python-Dev] make a Windows installation package (.msi) for Python 3.3
JMao at rocketsoftware.com
Fri May 10 19:31:39 CEST 2013
To Python Windows Release Managers:
My name is Jianfeng Mao and I am a software developer at the U2 group in Rocket Software (http://u2.rocketsoftware.com/). I am currently working on a project to embed a slightly customized Python interpreter in our product. For easy installation and setup, we hope to be able to do the standard Python installation during the installation of our software. Basically I want to create a .msi file that can be called to install the full Python if the user needs this new feature. Brian Curtin (brian at python.org<mailto:brian at python.org>) pointed me to Tools/msi/msi.py for the Windows MSI builder. I tried to follow the instructions in the README but couldn't make it to work after a few twists and turns. Brian mentioned that few people needs to do this and only release managers handle the packaging of Python. I have listed the steps I have done in my attempt to create the .msi file. Please let me know if I have missed anything or done anything wrong.
1. hg clone http://hg.python.org/cpython
2. cd cpython
3. hg update 3.3
4. cd tools\buildbot, edit build.bat to change the configuration from Debug to Releaes; edit external.bat, change DEBUG=1 to DEBUG=0
5. go back to cpython\ and run tools\buildbot\build.bat
6. cd PC, then do 'nmake -f icons.mak'
7. cd ..\tools\msi
8. c:\python27\python msi.py
WARNING: nm did not run successfully - libpythonXX.a not built
cl /O2 /D WIN32 /D NDEBUG /D _WINDOWS /MT /W3 /c msisupport.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
link.exe /OUT:msisupport.dll /INCREMENTAL:NO /NOLOGO /DLL /SUBSYSTEM:WIN
DOWS /OPT:REF /OPT:ICF msisupport.obj msi.lib kernel32.lib
Creating library msisupport.lib and object msisupport.exp
Traceback (most recent call last):
File "msi.py", line 1336, in <module>
File "msi.py", line 961, in add_files
File "msi.py", line 914, in generate_license
raise ValueError, "Could not find "+srcdir+"/../"+pat
ValueError: Could not find C:\temp\cpython/../tcl8*
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-Dev