New: Python 2.5 support

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

New: Python 2.5 support

Morne Joubert

Hi,

 

I am totally new with Python and need some pointers on how to get Python 2.5 to call a .NET 2.0 assembly.

 

I have been using the normal python distribution c:\python25 (using pyDev and Eclipse)

I installed python .NET at C:\Program Files\PythonNet and then pointed pyDev at this folder but then it complained about language errors.

I assume this is due to the differences between Python 2.3 and 2.5

 

So my question in a nutshell is….

What do I need to do to get Python 2.5 to call a .NET 2.0 assemble ?

 

Do I need to somehow rebuild Python.NET ?

 

Best regards,

 

Morné Joubert

---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.
_________________________________________________
Python.NET mailing list - [hidden email]
http://mail.python.org/mailman/listinfo/pythondotnet
Reply | Threaded
Open this post in threaded view
|

Re: New: Python 2.5 support

Barton
To date, for .NET 2 and beyond, folks have been building the pythonnet-2.0-alpha2-clr2.0 from the source files.
Now that I have access to the SourceForge project, it seems like it's time for me to build a binary release. I should be able to find the time this weekend to do the build and get them uploaded.  I will not be building an installer, however.

Once you have gotten the Python 2.5 .NET 2.0 binaries, it is likely that your pydev thing may work (I won't touch anything written in Java, myself).
Here are some tips in case that doesn't work:
The clr.pyd module and Python.Runtime.dll must be in a place where the python interpreter can find them.
A handy test would be to put them both in the same directory as the currently executing script (the one with
import clr
) is located.
Python will also look in several other places (besides the current working directory) such as
C:\Python25\DLLs
and
C:\Python25\Lib\site-packages
Both are acceptable places, but site-packages is the preferred way of extending python.

Give me a day or so to get the build uploaded and let us know how things are working out.

-Barton


On 9/10/2010 3:03 AM, Morne Joubert wrote:

Hi,

 

I am totally new with Python and need some pointers on how to get Python 2.5 to call a .NET 2.0 assembly.

 

I have been using the normal python distribution c:\python25 (using pyDev and Eclipse)

I installed python .NET at C:\Program Files\PythonNet and then pointed pyDev at this folder but then it complained about language errors.

I assume this is due to the differences between Python 2.3 and 2.5

 

So my question in a nutshell is….

What do I need to do to get Python 2.5 to call a .NET 2.0 assemble ?

 

Do I need to somehow rebuild Python.NET ?

 

Best regards,

 

Morné Joubert

---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.
_________________________________________________ Python.NET mailing list - [hidden email] http://mail.python.org/mailman/listinfo/pythondotnet

_________________________________________________
Python.NET mailing list - [hidden email]
http://mail.python.org/mailman/listinfo/pythondotnet