473,387 Members | 3,801 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Python extension compatibility

Hi,

*** QUICK BACKGROUND ***
-)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 ?
Regards,

Philippe
Jul 18 '05 #1
1 1536
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***********@Acm.Org
Jul 18 '05 #2

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

Similar topics

46
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?
47
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...
5
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...
1
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...
32
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:
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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
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...
0
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,...

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.