473,583 Members | 2,751 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python extension compatibility


-)I have been working with pycsc.c in which I made a few modifications.
-)When I had it working un linux - I attempted to port it to Windows
-) I read a lot, downloaded mingwin and had pexports crash when I attempted to
get the .def out of winscard.dll
-) I then attempted to create the .def by hand with no luck
-) I read some more and decided I would have ess problems with Visual
Studio .NET (sigh) - so I broked down and invested
-) the setup.py failed on python 2.3 because V6 was required
-) I read there was a patch but also that the laster 2.4B was compiled with VS
7.1 (which I assumed meant .NET)
-) Downloaded it, everyting compiled and linked fine - had to copy the files
by hand to the right locations and everyting worked great.
*************** *************** *********
Now for the question:

Since pycsc does not use any brand new Python functionality, are the binaries
be compatible with earlier versions of Python ? down to which ?

Jul 18 '05 #1
1 1547
Philippe C. Martin wrote:
Since pycsc does not use any brand new Python functionality, are the binaries
be compatible with earlier versions of Python ? down to which ?

Binaries are compatible down to major.minor versions.
That is 2.3.4 works with 2.3.1 and so on. Nothing you build with 2.4
will work (pass the initial setup test) across major.minor versions.

In addition to Python sometimes making incompatible changes, Microsoft
changes the runtime library interface (and in some cases even the C
function call interface for compiled code) for each version of their
compiler. Since python 2.3 down (to at least 2.1) uses VC 6, your 2.4
stuff (compiled with 7.1) wouldn't work even if Python didn't try to
prevent you.

You haven't specified what version of Windows you are using, nor what
version of gcc you tried. I get no crash running gcc 3.2.3's pexports
from on winscard.dll on Win2K Pro SP 5. I can use that gcc with 2.3
to build extensions. If you need help either getting that to work, or
simply want an email of the pexports output, drop me an e-mail to let
me know.

-Scott David Daniels
Sc***********@A cm.Org
Jul 18 '05 #2

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

Similar topics

by: Jon Perez | last post by:
Can one run a 1.5 .pyc file with the 2.x version interpreters and vice versa? How about running a 2.x .pyc using a 2.y interpreter?
by: Michael Scarlett | last post by:
There is an amazing article by paul graham about python, and an even better discussion about it on slashdot. The reason I point this out, is the more I read both articles, the more I realised how we would be mutilating the language with that god forsaken @ decorator. I don't know about the rest of you, but I learned python and fell in love...
by: Nicolas Pontoizeau | last post by:
Hi, I am handling a mixed languages text file encoded in UTF-8. Theres is mainly French, English and Asian languages. I need to detect every asian characters in order to enclose it by a special tag for latex. Does anybody know if there is a unicode "table of character" implementation in python? I mean, I give a character and python replys...
by: Petr Prikryl | last post by:
Do you think that the following could became PEP (pre PEP). Please, read it, comment it, reformulate it,... Abstract Introduction of the mechanism for language extensions via modules written using other languages. Extensions of Python could be done via special interpreter extensions. From Python sources, the special modules would look...
by: siggi | last post by:
@Ben Sizer Hi Ben, in January I received your message re Pygame and Python 2.5: As a Python (and programming ) newbie allow me a - certainly naive - question:
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
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. ...
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...
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...
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...
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...
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: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.