Can I use VS2005 to create extensions for a Python system built using VS2003

RDFLib needs C compilation extensions to install on ActiveState Python 2.5; as far as I can tell, there is no binary installer, wherever it is obvious on the Internet. When you try to install using python setup.py installit, it displays the following message:

error: Python was built with Visual Studio 2003;
extensions must be built with a compiler than can generate compatible binaries.
Visual Studio 2003 was not found on this system. If you have Cygwin installed,
you can try compiling with MingW32, by passing "-c mingw32" to setup.py.

There are various resources on the Internet about configuring the compiler for distutils that discuss the use of MinGW, although I have no work yet. As an alternative, I have VS2005.

Can anyone categorically tell me if you can use the C compiler in VS2005 to create Python extension modules for compiled Python VS2003 (in this case, ActiveState Python 2.5). If possible, what configuration is needed?

+3
source share
3 answers

, , . (Python VS2005, VS2003). - . VC Express, VC2005 - Microsoft . , , .

ActiveState Python, , ? VS2008, , python.org VS2003 .

+2

- C. Python 2.4/2.5, msvcr71.dll, C- dll.

- gcc (mingw) VS2005, python. , gcc Python:

http://www.develer.com/oss/GccWinBinaries

+3

2012 , Python2.4.4 ( , ) Visual Studio 2005 2008. VS10, . , , distutils, .

0

Source: https://habr.com/ru/post/1704128/


All Articles