From barton at BCDesignsWell.com Mon Aug 15 00:51:17 2011 From: barton at BCDesignsWell.com (Barton) Date: Sun, 14 Aug 2011 15:51:17 -0700 Subject: [Python.NET] Fedora FC15 Message-ID: <4E485165.60804@BCDesignsWell.com> I've rebuilt Christians work on the embedded Mono "clrpython" in order to get things in working order on Fedora FC15 Python 2.7.1. "clrpython" is a little clunky, so I'm proposing to make this public with the name mPython, nPython or maybe nmPython after testing on Windows. Any thoughts are greatly appreciated- barton From barton at BCDesignsWell.com Mon Aug 15 19:00:57 2011 From: barton at BCDesignsWell.com (Barton) Date: Mon, 15 Aug 2011 10:00:57 -0700 Subject: [Python.NET] Fedora FC15 In-Reply-To: References: <4E485165.60804@BCDesignsWell.com> Message-ID: <4E4950C9.1060809@BCDesignsWell.com> Very clever, Brett! Gave me a great big smile. Will definitely put this one in the hat. Thanks. On 8/15/2011 9:46 AM, Tribble, Brett wrote: > Pythono? > > -----Original Message----- > From: pythondotnet-bounces+btribble=ea.com at python.org [mailto:pythondotnet-bounces+btribble=ea.com at python.org] On Behalf Of Barton > Sent: Sunday, August 14, 2011 3:51 PM > To: 'pythondotnet at python.org' > Subject: [Python.NET] Fedora FC15 > > I've rebuilt Christians work on the embedded Mono "clrpython" in order > to get things in working order on Fedora FC15 Python 2.7.1. > "clrpython" is a little clunky, so I'm proposing to make this public > with the name mPython, nPython or maybe nmPython after testing on Windows. > > Any thoughts are greatly appreciated- > barton > _________________________________________________ > Python.NET mailing list - PythonDotNet at python.org > http://mail.python.org/mailman/listinfo/pythondotnet > > From btribble at ea.com Mon Aug 15 18:46:52 2011 From: btribble at ea.com (Tribble, Brett) Date: Mon, 15 Aug 2011 09:46:52 -0700 Subject: [Python.NET] Fedora FC15 In-Reply-To: <4E485165.60804@BCDesignsWell.com> References: <4E485165.60804@BCDesignsWell.com> Message-ID: Pythono? -----Original Message----- From: pythondotnet-bounces+btribble=ea.com at python.org [mailto:pythondotnet-bounces+btribble=ea.com at python.org] On Behalf Of Barton Sent: Sunday, August 14, 2011 3:51 PM To: 'pythondotnet at python.org' Subject: [Python.NET] Fedora FC15 I've rebuilt Christians work on the embedded Mono "clrpython" in order to get things in working order on Fedora FC15 Python 2.7.1. "clrpython" is a little clunky, so I'm proposing to make this public with the name mPython, nPython or maybe nmPython after testing on Windows. Any thoughts are greatly appreciated- barton _________________________________________________ Python.NET mailing list - PythonDotNet at python.org http://mail.python.org/mailman/listinfo/pythondotnet From tomo.bbe at gmail.com Thu Aug 25 19:48:50 2011 From: tomo.bbe at gmail.com (James) Date: Thu, 25 Aug 2011 18:48:50 +0100 Subject: [Python.NET] Efficient conversion from Single Array to ndarray Message-ID: Hi, I have recently started using Python for .Net to access a proprietory I/O library that has no Python bindings. This library gives access to scientific datasets similar to NetCDF, but in an unpublished format. I need to do some heavy post-processing on these datasets and I have little experience in programming .Net therefore my plan is to use Python, Numpy, pytables, etc. I have a working prototype of my code already, but the only way I have managed to convert from Single[] Arrays to ndarray is to loop through the whole data in Python - this is quite slow. So is there a more efficient to convert from one to the other? Regards, James -------------- next part -------------- An HTML attachment was scrubbed... URL: From barton at bcdesignswell.com Sun Aug 28 19:42:20 2011 From: barton at bcdesignswell.com (Barton) Date: Sun, 28 Aug 2011 10:42:20 -0700 Subject: [Python.NET] Several patches to improve compilation with Mono In-Reply-To: <4DC1539E.1080509@googlemail.com> References: <4DC1539E.1080509@googlemail.com> Message-ID: <4E5A7DFC.5060205@bcdesignswell.com> First; thank you very much, Philip. Second; I apologize for letting this slip for so long. Somehow these patches sank low on my list. Then when I went to build on Fedora, I didn't make use of your very helpful and parallel work. I'll be applying patches and testing on Fedora FC15 in the very short term. Thank you once again for your invaluable experience, Barton On 05/04/2011 06:24 AM, Philip Lorenz wrote: > Hi, > > after trying to compile Python for .NET on ArchLinux x86_64 I have run > into several issues which the attached patches fix: > > 1. Enable Mono config file loading. Otherwise a Python build with UCS4 > Unicode strings does not work as the Mono.Posix module cannot find > msvcrt (which is mapped to libc in Mono's config files). > 2. Python.Runtime.dll.config is missing mappings for Python 2.7 > 3. The architecture detection code in the Makefile did not work > correctly (checking for the 86 substring is true for both x86 as well as > x86_64 targets). > 4. I have renamed the clrmodule.il target in the Makefile to > clrmodule_make.il. Otherwise a fresh SVN checkout would not build as > clrmodule.il is already included. > 5. Adapt the clrmod Makefile to support Mono 2.8 pkgconfig change. > Additionally, retrieve Glib 2 options from its pkgconfig and compile > the x86_64 build with -fPIC. > 6. Support the standard DESTDIR parameter for the install target. > Additionally, install Python.Runtime.dll and Python.Runtime.dll.config > to the site-packages folder so it is found by the clr module. > > If you have any comments or if there are any issues with these patches > please let me know. > > Philip > > > > > _________________________________________________ > Python.NET mailing list - PythonDotNet at python.org > http://mail.python.org/mailman/listinfo/pythondotnet From brad at fie.us Sun Aug 28 20:02:43 2011 From: brad at fie.us (Bradley Friedman) Date: Sun, 28 Aug 2011 14:02:43 -0400 Subject: [Python.NET] Several patches to improve compilation with Mono In-Reply-To: <4E5A7DFC.5060205@bcdesignswell.com> References: <4DC1539E.1080509@googlemail.com> <4E5A7DFC.5060205@bcdesignswell.com> Message-ID: <76179ECF-B99A-4FB1-A73D-B10B070B9BC6@fie.us> For what it's worth, I dug these patches out of the mailing list a month or so ago and had success running on a modern Ubuntu 64bit and some success with OSX. -brad On Aug 28, 2011, at 1:42 PM, Barton wrote: > First; thank you very much, Philip. > Second; I apologize for letting this slip for so long. > Somehow these patches sank low on my list. Then when I went to build on Fedora, I didn't make use of your very helpful and parallel work. I'll be applying patches and testing on Fedora FC15 in the very short term. > > Thank you once again for your invaluable experience, > Barton > > On 05/04/2011 06:24 AM, Philip Lorenz wrote: >> Hi, >> >> after trying to compile Python for .NET on ArchLinux x86_64 I have run >> into several issues which the attached patches fix: >> >> 1. Enable Mono config file loading. Otherwise a Python build with UCS4 >> Unicode strings does not work as the Mono.Posix module cannot find >> msvcrt (which is mapped to libc in Mono's config files). >> 2. Python.Runtime.dll.config is missing mappings for Python 2.7 >> 3. The architecture detection code in the Makefile did not work >> correctly (checking for the 86 substring is true for both x86 as well as >> x86_64 targets). >> 4. I have renamed the clrmodule.il target in the Makefile to >> clrmodule_make.il. Otherwise a fresh SVN checkout would not build as >> clrmodule.il is already included. >> 5. Adapt the clrmod Makefile to support Mono 2.8 pkgconfig change. >> Additionally, retrieve Glib 2 options from its pkgconfig and compile >> the x86_64 build with -fPIC. >> 6. Support the standard DESTDIR parameter for the install target. >> Additionally, install Python.Runtime.dll and Python.Runtime.dll.config >> to the site-packages folder so it is found by the clr module. >> >> If you have any comments or if there are any issues with these patches >> please let me know. >> >> Philip >> >> >> >> >> _________________________________________________ >> Python.NET mailing list - PythonDotNet at python.org >> http://mail.python.org/mailman/listinfo/pythondotnet > _________________________________________________ > Python.NET mailing list - PythonDotNet at python.org > http://mail.python.org/mailman/listinfo/pythondotnet From barton at bcdesignswell.com Sun Aug 28 20:05:41 2011 From: barton at bcdesignswell.com (Barton) Date: Sun, 28 Aug 2011 11:05:41 -0700 Subject: [Python.NET] Several patches to improve compilation with Mono In-Reply-To: <76179ECF-B99A-4FB1-A73D-B10B070B9BC6@fie.us> References: <4DC1539E.1080509@googlemail.com> <4E5A7DFC.5060205@bcdesignswell.com> <76179ECF-B99A-4FB1-A73D-B10B070B9BC6@fie.us> Message-ID: <4E5A8375.9060007@bcdesignswell.com> Thanks for the info Brad. Nice to have you on the list. -Barton On 08/28/2011 11:02 AM, Bradley Friedman wrote: > For what it's worth, I dug these patches out of the mailing list a month or so ago and had success running on a modern Ubuntu 64bit and some success with OSX. > > -brad > > On Aug 28, 2011, at 1:42 PM, Barton wrote: > From barton at bcdesignswell.com Mon Aug 29 07:44:21 2011 From: barton at bcdesignswell.com (Barton) Date: Sun, 28 Aug 2011 22:44:21 -0700 Subject: [Python.NET] Several patches to improve compilation with Mono In-Reply-To: <4DC1539E.1080509@googlemail.com> References: <4DC1539E.1080509@googlemail.com> Message-ID: <4E5B2735.6030203@bcdesignswell.com> So if git is producing your udiff files, does that mean that you are actually pulling from the clone that's on github? That would explain why you didn't have the python2.7 mapping, anyway. I (sort or) like the clrmodule_make.il input file name, but what to do for Windows folks? I also like the DESTDIR parameter for the install target - and will commit that. Thanks again. On 05/04/2011 06:24 AM, Philip Lorenz wrote: > Hi, > > after trying to compile Python for .NET on ArchLinux x86_64 I have run > into several issues which the attached patches fix: > > 1. Enable Mono config file loading. Otherwise a Python build with UCS4 > Unicode strings does not work as the Mono.Posix module cannot find > msvcrt (which is mapped to libc in Mono's config files). > 2. Python.Runtime.dll.config is missing mappings for Python 2.7 > 3. The architecture detection code in the Makefile did not work > correctly (checking for the 86 substring is true for both x86 as well as > x86_64 targets). > 4. I have renamed the clrmodule.il target in the Makefile to > clrmodule_make.il. Otherwise a fresh SVN checkout would not build as > clrmodule.il is already included. > 5. Adapt the clrmod Makefile to support Mono 2.8 pkgconfig change. > Additionally, retrieve Glib 2 options from its pkgconfig and compile > the x86_64 build with -fPIC. > 6. Support the standard DESTDIR parameter for the install target. > Additionally, install Python.Runtime.dll and Python.Runtime.dll.config > to the site-packages folder so it is found by the clr module. > > If you have any comments or if there are any issues with these patches > please let me know. > > Philip > > > > > _________________________________________________ > Python.NET mailing list - PythonDotNet at python.org > http://mail.python.org/mailman/listinfo/pythondotnet From lorenzph at googlemail.com Wed Aug 31 17:15:56 2011 From: lorenzph at googlemail.com (Philip Lorenz) Date: Wed, 31 Aug 2011 17:15:56 +0200 Subject: [Python.NET] Several patches to improve compilation with Mono In-Reply-To: <4E5B2735.6030203@bcdesignswell.com> References: <4DC1539E.1080509@googlemail.com> <4E5B2735.6030203@bcdesignswell.com> Message-ID: <4E5E502C.5050907@googlemail.com> Hi Barton, On 08/29/2011 07:44 AM, Barton wrote: > So if git is producing your udiff files, does that mean that you are > actually pulling from the clone that's on github? I used the GIT-SVN bridge in order to create those patches. But may be something was wrong with my working copy. > I (sort or) like the clrmodule_make.il input file name, but what to do > for Windows folks? I haven't personally used the Makefile on Windows based systems (I always built Python.NET using the bundled Visual Studio Solution file). I don't know how exactly the Makefile would be invoked on Windows (is it a nmake compatible syntax?). A way to solve the issue could be to replace the "cp oldmodule.il clrmodule_make.il" statement in the else case with "copy clrmodule.il clrmodule_make.il". Philip From tomo.bbe at gmail.com Wed Aug 24 18:15:16 2011 From: tomo.bbe at gmail.com (James) Date: Wed, 24 Aug 2011 17:15:16 +0100 Subject: [Python.NET] Fast conversion .Net Single Array to numpy ndarray Message-ID: Hi, I have recently started using Python for .Net to access a proprietory I/O library that has no Python bindings. This library gives access to scientific datasets similar to NetCDF, but in an unpublished format. I need to do some heavy post-processing on these datasets and I have little experience in programming .Net therefore my plan is to use Python, Numpy, pytables, etc. I have a working prototype of my code already, but the only way I have managed to convert from Single[] Arrays to ndarray is to loop through the whole data in Python - this is quite slow. So is there a more efficient to convert from one to the other? Regards, James -------------- next part -------------- An HTML attachment was scrubbed... URL: