473,508 Members | 2,361 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Compiling Python using Microsoft Visual C++ 2008


1.I have both 2.5 and 2.6 but both
appear, under Recent Projects, as
pcbuild. It would be helpful if the
Python Version could be indicated.
2.With 2.6, Python compiles and executes
OK but various packages are not
compiled, eg sqlite3.
3.Pythonw compiles OK but not sqlite3.
4.Mike Fletcher suggests an approach
(http://www.vrplumber.com/programming/mstoolkit/)
with Visual C for Python 2.4. Is this
still the recommended way to compile
Python 2.6?
5.Python 2.5 source refers to an Older
Visual C. Automatic conversion to
Visual C 2008 gives the message “Some of
the properties associated with the
solution could not be read.” All
projects except one had a single
warning, there were no errors reported.
6.After conversion there is no python
project, it is flagged “unavailable”.
7.Pythoncore builds with no errors and 6
warnings but there is no executable.
8.Python 2.5 build _tkinter fails –
tcl.h not found.

I would welcom advice on how to proceed.

Colin W.
Jun 27 '08 #1
4 2604
1.I have both 2.5 and 2.6 but both appear, under Recent Projects, as
pcbuild. It would be helpful if the Python Version could be indicated.
Hover over the link, and it will display the full path, which you can
then infer to reason about the specific copy of Python you are using.

In any case, compiling Python 2.5 with VS 2008 is not supported.
2.With 2.6, Python compiles and executes OK but various packages are not
compiled, eg sqlite3.
See PCbuild/readme.txt.
3.Pythonw compiles OK but not sqlite3.
So what's the error?
4.Mike Fletcher suggests an approach
(http://www.vrplumber.com/programming/mstoolkit/) with Visual C for
Python 2.4. Is this still the recommended way to compile Python 2.6?
No. Either use the full product, or the express edition. Neither
requires and additional setup.
5.Python 2.5 source refers to an Older Visual C. Automatic conversion
to Visual C 2008 gives the message “Some of the properties associated
with the solution could not be read.” All projects except one had a
single warning, there were no errors reported.
6.After conversion there is no python project, it is flagged “unavailable”.
See above. This procedure is not supported; you are on your own.
Get a copy of VS 2003 if you want to follow the official
recommendations.
7.Pythoncore builds with no errors and 6 warnings but there is no
executable.
8.Python 2.5 build _tkinter fails – tcl.h not found.
See PCbuild/readme.txt.

Regards,
Martin
Jun 27 '08 #2
Martin v. Löwis wrote:
>1.I have both 2.5 and 2.6 but both appear, under Recent Projects, as
pcbuild. It would be helpful if the Python Version could be indicated.

Hover over the link, and it will display the full path, which you can
then infer to reason about the specific copy of Python you are using.
Lovely, thanks. It's at the bottom of
the screen.
>
In any case, compiling Python 2.5 with VS 2008 is not supported.
>2.With 2.6, Python compiles and executes OK but various packages are not
compiled, eg sqlite3.

See PCbuild/readme.txt.
I presume that this is PCbuild8.txt
>
>3.Pythonw compiles OK but not sqlite3.

So what's the error?
>4.Mike Fletcher suggests an approach
(http://www.vrplumber.com/programming/mstoolkit/) with Visual C for
Python 2.4. Is this still the recommended way to compile Python 2.6?

No. Either use the full product, or the express edition. Neither
requires and additional setup.
>5.Python 2.5 source refers to an Older Visual C. Automatic conversion
to Visual C 2008 gives the message “Some of the properties associated
with the solution could not be read.” All projects except one had a
single warning, there were no errors reported.
6.After conversion there is no python project, it is flagged “unavailable”.

See above. This procedure is not supported; you are on your own.
Get a copy of VS 2003 if you want to follow the official
recommendations.
>7.Pythoncore builds with no errors and 6 warnings but there is no
executable.
8.Python 2.5 build _tkinter fails – tcl.h not found.

See PCbuild/readme.txt.

Regards,
Martin
Thanks. I'll look at the readme more
carefully and seek VS 2003.

Now, I would like to remove Python 2.5
from VS 2008 but see no obvious way of
getting rid of it.

Colin W.
Jun 27 '08 #3
Colin J. Williams schrieb:
>See PCbuild/readme.txt.

I presume that this is PCbuild8.txt
No, it's PCbuild/readme.txt in Python 2.6 and 3.0

By the way you can call Tools\buildbot\external.bat from the root
directory of the 2.6 and 3.0. It checks out and build the dependencies.
The script requires the VS 9.0 tools and the svn command line executables.

Christian

Jun 27 '08 #4
>See PCbuild/readme.txt.
>
I presume that this is PCbuild8.txt
As Christian says: PCbuild/readme.txt are the correct instructions
(and had been since Python 2.0 or so).
Now, I would like to remove Python 2.5 from VS 2008 but see no obvious
way of getting rid of it.
You might be able to clear the most-recent-projects list in the registry
somehow, but I personally wouldn't worry - if you open other projects,
this one will scroll off the list eventually.

Regards,
Martin
Jun 27 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
2356
by: Fuzzyman | last post by:
I'll post this to the image-sig as well, but the audience is a bit wider here. I've just upgraded to Python 2.4. I've installed the free microsoft optimising compiler and hacked distutils to use...
6
6151
by: Martin Bless | last post by:
The good news: Along with Python-2.4 comes really good news to Windows users. Yes, you now CAN build extension modules yourself using the SAME C++ compiler and linker Python is built with...
0
2049
by: Martin Bless | last post by:
I need to access a MSSQL database (MS-Sql, not MySQL!)and would very much like to use mssql-0.09.tar.gz which is available from http://www.object-craft.com.au/projects/mssql/download.html ...
3
3810
by: alexandre_irrthum | last post by:
Hi there, I am trying to install a Python library with a C extension (the Polygon library) and I am having a bad time. My Python version is Python 2.4.3 - Enthought Edition 1.0.0 (#69, Aug 2...
6
2304
by: alf | last post by:
Hi, I want to add some library but it can not be comipled? Here is an output: D:\>cl Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for 80x86 Copyright (C) Microsoft...
1
3906
by: jon2211 | last post by:
I tried to compile some code with #include <shellapi.h. I am linking shell32.lib. I am not trying to use ShellExecute() but right now just getting the code to compile with the header file an...
4
3023
by: Colin J. Williams | last post by:
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....
0
154
by: inhahe | last post by:
"inhahe" <inhahe@gmail.comwrote in message news:... Actually, I was under the impression that the socket module relied on one of the external libraries to work, since it didn't work when I...
2
3582
by: eliben | last post by:
On Jun 27, 3:10 pm, eliben <eli...@gmail.comwrote: Problem solved: http://eli.thegreenplace.net/2008/06/28/compiling-python-extensions-with-distutils-and-mingw/
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7115
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7036
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7489
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5047
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4705
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1547
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.