Re: [Python-Dev] expy: an expressway to extend Python

2009-07-21 Thread Oleg Broytmann
On Mon, Jul 20, 2009 at 09:19:10PM -0700, Yingjie Lan wrote: This is to announce the initial release of expy 0.1.0. More details at http://expy.sourceforge.net/ What is it (the announcement is too brief and I'm not going to click on a link without a real need)? How does it help core

Re: [Python-Dev] Remove site-packages?!? [was: [Distutils] PEP 376 - from pythonpkgmgr's point of view]

2009-07-21 Thread John Szakmeister
On Sun, Jul 19, 2009 at 7:13 PM, David Lyondavid.l...@preisshare.net wrote: [snip] The main problem imho has been that easy_install by default has installed to /usr/lib/pythonX.X/site-packages when in fact that really is an operating system controlled directory. So naughty naughty to

Re: [Python-Dev] Remove site-packages?!? [was: [Distutils] PEP 376 - from pythonpkgmgr's point of view]

2009-07-21 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John Szakmeister wrote: On Sun, Jul 19, 2009 at 7:13 PM, David Lyondavid.l...@preisshare.net wrote: [snip] The main problem imho has been that easy_install by default has installed to /usr/lib/pythonX.X/site-packages when in fact that really is

Re: [Python-Dev] expy: an expressway to extend Python

2009-07-21 Thread Yingjie Lan
Hi, Here is a brief example on how to use expy to implement the math module: (for more details, see http://expy.sf.net/) Python math module by expy-cxpy. from expy import * expymodule(__name__) #includes, defines, etc. @prologue def myprolog(): return #include math.h

[Python-Dev] Support for Python/Windows

2009-07-21 Thread Steve Holden
Devs: I've been in correspondence with Microsoft about the provision of software, and it transpires that if you want to support Windows better Microsoft will be quite liberal about licensing: they will *give* you a Microsoft Developer Network license. If you are interested in offering better

Re: [Python-Dev] expy: an expressway to extend Python

2009-07-21 Thread Oleg Broytmann
On Tue, Jul 21, 2009 at 11:22:19AM -0700, Yingjie Lan wrote: @function(double) #return type: double def sqrt(x=double): #argument x: double Python 3.0 has arguments and return value annotations: http://docs.python.org/3.0/whatsnew/3.0.html#new-syntax http://www.python.org/dev/peps/pep-3107/

Re: [Python-Dev] expy: an expressway to extend Python

2009-07-21 Thread Eric Entin
I think the point of his software is to make it easier to interface Python with C code, although his examples were probably not the best. Eric Entin On Tue, Jul 21, 2009 at 2:52 PM, Oleg Broytmann p...@phd.pp.ru wrote: On Tue, Jul 21, 2009 at 11:22:19AM -0700, Yingjie Lan wrote:

Re: [Python-Dev] expy: an expressway to extend Python

2009-07-21 Thread Oleg Broytmann
On Tue, Jul 21, 2009 at 04:26:52PM -0400, Eric Entin wrote: I think the point of his software is to make it easier to interface Python with C code I think I understand that. And I think this @function(double) #return type: double def sqrt(x=double): #argument x: double is how C

Re: [Python-Dev] Support for Python/Windows

2009-07-21 Thread Christian Heimes
Steve Holden wrote: Devs: I've been in correspondence with Microsoft about the provision of software, and it transpires that if you want to support Windows better Microsoft will be quite liberal about licensing: they will *give* you a Microsoft Developer Network license. If you are

Re: [Python-Dev] Support for Python/Windows

2009-07-21 Thread Curt Hagenlocher
On Tue, Jul 21, 2009 at 2:36 PM, Christian Heimes li...@cheimes.de wrote: Does the MSDN subscription also include the permission to create and release binaries? Sam Ramji wrote just developing and testing. Me and probably all other subscribers like to use the MSDN subscription to build

Re: [Python-Dev] Support for Python/Windows

2009-07-21 Thread Christian Heimes
Curt Hagenlocher wrote: Considering that the compilers are all freely downloadable as part of the Windows SDK, it would be weird if the subscription were *more* restrictive than what you can get without it. Disclaimer: I work for Microsoft, but eh, I'm just guessing. Some features like PGO

Re: [Python-Dev] Support for Python/Windows

2009-07-21 Thread Steve Holden
Christian Heimes wrote: Steve Holden wrote: Devs: I've been in correspondence with Microsoft about the provision of software, and it transpires that if you want to support Windows better Microsoft will be quite liberal about licensing: they will *give* you a Microsoft Developer Network

Re: [Python-Dev] Support for Python/Windows

2009-07-21 Thread Curt Hagenlocher
On Tue, Jul 21, 2009 at 3:04 PM, Christian Heimesli...@cheimes.de wrote: Some features like PGO aren't available in VS Express Edition or Windows SDK. I'm not sure about all aspects of X86_64 builds, too. I'm prefer better safe than sorry. Ah, you're right -- the PGO bits probably need VS

Re: [Python-Dev] Support for Python/Windows

2009-07-21 Thread Neil Hodgson
Curt Hagenlocher: Ah, you're right -- the PGO bits probably need VS Pro. The 64-bit compilers should be in the Windows SDK, but it wouldn't surprise me if they were not included in Express. 64-bit isn't in Express and merging the 64 bit compiler from the SDK into Express may be possible

Re: [Python-Dev] Remove site-packages?!? [was: [D istutils] PEP 376 - from pythonpkgmgr's point of view]

2009-07-21 Thread David Lyon
On Tue, 21 Jul 2009 13:41:41 -0400, Tres Seaver tsea...@palladion.com wrote: The main problem imho has been that easy_install by default has installed to /usr/lib/pythonX.X/site-packages when in fact that really is an operating system controlled directory. So naughty naughty to setuptools

Re: [Python-Dev] expy: an expressway to extend Python

2009-07-21 Thread Yingjie Lan
--- On Wed, 7/22/09, Oleg Broytmann p...@phd.pp.ru wrote: From: Oleg Broytmann p...@phd.pp.ru Subject: Re: [Python-Dev] expy: an expressway to extend Python To: python-dev@python.org Date: Wednesday, July 22, 2009, 12:45 AM On Tue, Jul 21, 2009 at 04:26:52PM -0400, Eric Entin wrote: I

Re: [Python-Dev] Remove site-packages?!? [was: [Distutils] PEP 376 - from pythonpkgmgr's point of view]

2009-07-21 Thread James Y Knight
On Jul 21, 2009, at 7:38 PM, David Lyon wrote: When I go into python on ubuntu I see there is /usr/local/pythonX.X/ lib/ site-packages and I'm wondering why the hubba setuptools/distutils doesn't put packages there by default. That would solve a lot of problems. Just leave

Re: [Python-Dev] Remove site-packages?!? [was: [D istutils] PEP 376 - from pythonpkgmgr's point of view]

2009-07-21 Thread David Lyon
On Tue, 21 Jul 2009 21:46:11 -0400, James Y Knight f...@fuhm.net wrote: Uh guys, I'm not sure if anyone here noticed, but Debian and Ubuntu have switched to install their distribution-supplied python libraries into: /usr/lib/pythonX.Y/lib/dist-packages and distutils by default will