473,881 Members | 1,708 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 2627
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
2380
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 it - following the instructiosn from http://www.vrplumber.com/programming/mstoolkit/ . It works great and I've built a windows installer for PyCrypto 2.0. I'm attempting to compile PIL for python 2.4. The build instructions for windows say :
6
6183
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 itself. Everything you need is available at no costs (except download hassle and installation time). Once your system is set up properly its just a matter of running 'python setup.py build'. No longer waiting for someone else to build binaries and a...
0
2081
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 Unfortunately the binary for Python-2.4 isn't available yet and I'd hate to step back to a previous version. I'm glad I managed to set up my XP machine to being able to compile extensions using the VC++ toolkit which freely availbale from MS. See
3
3827
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 2006, 12:09:59) on Windows XP Pro. I have dutifully followed the instructions here: http://wiki.python.org/moin/Building_Python_with_the_free_MS_C_Toolkit
6
2327
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 Corporation. All rights reserved.
1
3941
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 issue. I am using Visual Basic 2005 (express). I got shellapi.h from the platform sdk. Thanks for any help. here is my error log 1>------ Build started: Project: openFile, Configuration: Debug Win32 ------
4
3039
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. 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
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 compiled it. But reading the readme again I realized that the socketmodule is supposed to compile out of the box. So I compiled Python again on VS2005 instead of 2008 (the error I posted that didn't work on 2008 or 2005 was trying to compile one of...
2
3602
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
11100
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10718
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10816
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10401
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7953
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7110
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5781
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5977
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4597
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 we have to send another system

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.