Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Dev

Compiling cpython2.5.1 in VS2005?

 

 

Python dev RSS feed   Index | Next | Previous | View Threaded


ty.newton at copperchipgames

Sep 4, 2007, 12:07 PM

Post #1 of 3 (390 views)
Permalink
Compiling cpython2.5.1 in VS2005?

Hi,

I was building Python 2.5.1 in Visual Studio 2005 and noticed some
problems with the instructions.

Can someone confirm this and update the readme file in the PCbuild8
directory? I don't yet have access to the repository.

This is what the readme.txt file says to do:
<snip>
All you need to do is open the workspace "pcbuild.sln" in VisualStudio
2005, select the platform, select the Debug or Release setting (using
"Solution Configuration" from the "Standard" toolbar"), and build the
solution.

The proper order to build subprojects:

1) pythoncore (this builds the main Python DLL and library files,
python25.{dll, lib} in Release mode)
NOTE: in previous releases, this subproject was
named after the release number, e.g. python20.

2) python (this builds the main Python executable,
python.exe in Release mode)
</snip>

This is my experience. DEBUG configuration:

When I select 'pythoncore' (right click) from the solution explorer,
select 'project only', select 'build only pythoncore' I get this error
report:

Warning 1 warning C4005: 'Yield' : macro redefinition E:\Program
Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winbase.h 57

Warning 2 warning C4005: 'Yield' : macro redefinition E:\Program
Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winbase.h 57

Error 3 fatal error C1083: Cannot open source file: '.\getbuildinfo2.c':
No such file or directory c1


It looks like the project dependencies are not kicking in. I assume
this is caused by building the project instead of the solution. So I
did them manually.

First make_versioninfo project:
I select 'make_versioninfo' (right click) from the solution explorer,
select 'project only', select 'build only make_versioninfo'. This succeeds.

Second make_buildinfo project:
I select 'make_buildinfo' (right click) from the solution explorer,
select 'project only', select 'build only make_buildinfo'. This succeeds.

Finally I try to make pythoncore again:
I select 'pythoncore' (right click) from the solution explorer, select
'project only', select 'build only pythoncore'. This succeeds.

Now I build python and it also succeeds.


One last thing I noticed is if there are spaces in the path of the
source files the compilation also fails.


Regards,
Ty
_______________________________________________
Python-Dev mailing list
Python-Dev [at] python
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/list-python-dev%40lists.gossamer-threads.com


martin at v

Sep 4, 2007, 1:55 PM

Post #2 of 3 (375 views)
Permalink
Re: Compiling cpython2.5.1 in VS2005? [In reply to]

> Can someone confirm this and update the readme file in the PCbuild8
> directory? I don't yet have access to the repository.

Please provide patches instead, and post them on bugs.python.org.

Regards,
Martin
_______________________________________________
Python-Dev mailing list
Python-Dev [at] python
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/list-python-dev%40lists.gossamer-threads.com


ty.newton at copperchipgames

Sep 4, 2007, 2:46 PM

Post #3 of 3 (373 views)
Permalink
Re: Compiling cpython2.5.1 in VS2005? [In reply to]

oh, sorry. I'll do that.

Ty

Martin v. Löwis wrote:
>> Can someone confirm this and update the readme file in the PCbuild8
>> directory? I don't yet have access to the repository.
>
> Please provide patches instead, and post them on bugs.python.org.
>
> Regards,
> Martin
>
>
_______________________________________________
Python-Dev mailing list
Python-Dev [at] python
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/list-python-dev%40lists.gossamer-threads.com

Python dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.