PCBuild.sin - Attempt to compile Python using Visual Studio 2008

Tim Golden mail at timgolden.me.uk
Thu May 8 10:06:16 EDT 2008


Gabriel Genellina wrote:
> En Thu, 08 May 2008 09:55:36 -0300, Colin J. Williams <cjw at ncf.ca> escribió:
> 
>> The readme.txt has:
>>
>> All you need to do is open the workspace
>> "pcbuild.sln" in Visual Studio,
>> select the desired combination of
>> configuration and platform and eventually
>> build the solution. Unless you are going
>> to debug a problem in the core or
>> you are going to create an optimized
>> build you want to select "Release" as
>> configuration.
>>
>> Unfortunately, the Express Edition
>> (Free) doesn't handle "solution" files.
> 
> Python builds fine with Visual C++ Express Edition.
> Select Release, Win32 from the dropdown lists, press F7, 
> and wait for compilation to complete...

Or, if you prefer not to have the long startup time for Visual Studio,
simple start a command prompt in python\pcbuild, call the env
cmd script and then the build script:

<screendump>
C:\temp>cd \work_in_progress

C:\work_in_progress>cd python

C:\work_in_progress\python>cd PCbuild

C:\work_in_progress\python\PCbuild>env
Build environments: x86, ia64, amd64, x86_amd64, x86_ia64

Setting environment for using Microsoft Visual Studio 2008 x86 tools.

C:\work_in_progress\python\PCbuild>build
vcbuild /useenv pcbuild.sln  "Release|Win32"
Microsoft (R) Visual C++ Project Builder - Command Line Version 9.00.21022
Copyright (C) Microsoft Corporation. All rights reserved.

Build started: Project: make_versioninfo, Configuration: Release|Win32
Compiling...

</screendump>

TJG



More information about the Python-list mailing list