Re: [Pythonmac-SIG] Gdbm with Python 2.4.1?

2006-03-16 Thread Bob Ippolito

On Mar 16, 2006, at 6:43 PM, James Reese wrote:

> Can anyone tell me how to get Python 2.4.1 to support gdbm short of
> building it from source? Any hints will be greatly appreciated.

If you want gdbm you will have to build from source (either extract  
the gdbmmodule.c, write a setup.py for it, and build that separately,  
or build all of Python).  There is no binary for gdbm available.

-bob

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


[Pythonmac-SIG] Gdbm with Python 2.4.1?

2006-03-16 Thread James Reese
Can anyone tell me how to get Python 2.4.1 to support gdbm short of  
building it from source? Any hints will be greatly appreciated.

Jim
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] PyOpenGL Mac

2006-03-16 Thread Graham Cummins
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

- -BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On Mar 16, 2006, at 9:53 AM, Graham Cummins wrote:
>
> I've been having a beast of a time trying to build PyOpenGL on Mac
> recently. My last successful build was 2.0.1.09, and currently I
> can't even repeat that.
>
> from src/interface/GL.3DFX._multisample.c:6:
> /System/Library/Frameworks/Kernel.framework/Headers/sys/stat.h:225:
> error: field 'st_atimespec' has incomplete type

Never mind, I've answered my own question. This error is caused by  
having /System/Library/Frameworks/Kernel.frameworks/Headers in the  
"include_dirs" defined in config/darwin.cfg. It seems that this  
causes Python.h to include the wrong stat.h. Removing that line fixes  
that issue.

  I got some other errors from files using #include , but  
I was able to solve those with a (very) nasty hack of symlinking / 
System/Library/Frameworks/OpenGL.framework/Headers into itself under  
the alternate name "GL".

I was still not able to compile 2.1.2.01, but I with these two  
modifications I could compile 2.0.1.09 for intel macintosh using  
gcc-4.0, which is good enough for me for now.


- -BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFEGg5Dm4P5KE2ufQoRAnK7AJ9KfcCmJswfuild01nzsIRSLEpvpgCeO2an
VmGG0Zu4Q0td7+mPKJ24UNM=
=aDYp
- -END PGP SIGNATURE-
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFEGg6Gm4P5KE2ufQoRApY6AKCCnKhqrsRrYbgcyOabKA3d0oy4PwCeI7BT
45GzWqMiRwSNeIYjnoMWVz0=
=x7kB
-END PGP SIGNATURE-
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] Fwd: py2app question

2006-03-16 Thread Bob Ippolito

On Mar 16, 2006, at 8:58 AM, Dethe Elza wrote:

> Forgot to respond to list in my reply:
>
> On 3/16/06, Stewart Midwinter <[EMAIL PROTECTED]> wrote:
>> I have an application I'd like to have located on a USB stick, and be
>> able to run in a self-contained manner on any PC it's connected to,
>> whether running OS X or Windows.   Can I use py2app to help create
>> this stand-alone distribution?
>
> There's no way to create an entirely self-contained application that
> runs on either Windows or OS X, there are just too many differences in
> how they are built and bootstrapped.  But py2app will let you build a
> self-contained application which will run off of a memory stick.  You
> might be able to use filesystem tricks to hide the OS X application on
> Windows and the Windows application on OS X, to give the illusion that
> there is only one application (some CD ROMs do this, I believe).

I don't think you can ISO format a memory stick.. at least not in a  
way that Windows would recognize...

>> Or, could I count on Python always being installed on any OS X -
>> equipped PC, and thus not need to install a separate copy on my USB
>> stick in order to be able to run my app?
>
> You cannot count on the version of Python that will be installed, or
> any external libraries you depend on.  The best thing is to bundle it
> all into your application using py2app.

py2exe does something similar to py2app, but for Windows.  Just do it  
on both systems, then drop them both on the memory stick.  They won't  
be sharing any files, but the only thing that they would be able to  
share is python bytecode, and that's insignificant compared to the  
size of Python and the compiled extensions.

-bob

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


[Pythonmac-SIG] PyOpenGL Mac

2006-03-16 Thread Graham Cummins
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I've been having a beast of a time trying to build PyOpenGL on Mac  
recently. My last successful build was 2.0.1.09, and currently I  
can't even repeat that.

If I remember correctly, I had to switch to gcc-3.3 to get that build  
to work. Currently, with gcc-4.0 on version 2.0.2.01 I get lots of  
errors of the form:

from src/interface/GL.3DFX._multisample.c:6:
/System/Library/Frameworks/Kernel.framework/Headers/sys/stat.h:225:  
error: field 'st_atimespec' has incomplete type

I'm trying to go back and repeat my build with gcc-3.3 on my powerpc  
mac, but even if I rediscover that secret, it won't help me on my new  
Intel mac, since gcc-3.3 doesn't target the Intel platform.

Anyway, if anyone knows how to build this package on a recent (OS  
10.4.5) Mac, especially an Intel Mac, please let me know. Thanks.

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFEGZgPm4P5KE2ufQoRAqQbAKCAvM94rS7PKr4PEVekeauNZ+j3kACgrf4d
+DhvOSOSsBx7mduJYFMUV1I=
=Jv2G
-END PGP SIGNATURE-
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


[Pythonmac-SIG] Fwd: py2app question

2006-03-16 Thread Dethe Elza
Forgot to respond to list in my reply:

On 3/16/06, Stewart Midwinter <[EMAIL PROTECTED]> wrote:
> I have an application I'd like to have located on a USB stick, and be
> able to run in a self-contained manner on any PC it's connected to,
> whether running OS X or Windows.   Can I use py2app to help create
> this stand-alone distribution?

There's no way to create an entirely self-contained application that
runs on either Windows or OS X, there are just too many differences in
how they are built and bootstrapped.  But py2app will let you build a
self-contained application which will run off of a memory stick.  You
might be able to use filesystem tricks to hide the OS X application on
Windows and the Windows application on OS X, to give the illusion that
there is only one application (some CD ROMs do this, I believe).

> Or, could I count on Python always being installed on any OS X -
> equipped PC, and thus not need to install a separate copy on my USB
> stick in order to be able to run my app?

You cannot count on the version of Python that will be installed, or
any external libraries you depend on.  The best thing is to bundle it
all into your application using py2app.

--Dethe

>
> thanks
> S
> ___
> Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
>
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


[Pythonmac-SIG] py2app question

2006-03-16 Thread Stewart Midwinter
I have an application I'd like to have located on a USB stick, and be
able to run in a self-contained manner on any PC it's connected to,
whether running OS X or Windows.   Can I use py2app to help create
this stand-alone distribution?

Or, could I count on Python always being installed on any OS X -
equipped PC, and thus not need to install a separate copy on my USB
stick in order to be able to run my app?

thanks
S
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] Veusz, Pyqt

2006-03-16 Thread Ronald Oussoren

On 16-mrt-2006, at 12:43, Ronald Oussoren wrote:

> Shees, how lame can one get.  It is not that hard to use py2ap or
> even macho_standalone
> to create an application bundle that doesn't need to place files all
> over the place.
>
> Don't install this package, it will replace files in /Library/
> Frameworks/Python.framework.

Never mind, I'm an idiot. It will replace files in /Library/ 
Frameworks/Python.framework,
but only those related to PyQt and Veusz itself.

Ronald

>
> Ronald
>
> On 16-mrt-2006, at 11:43, LALOUX Martin wrote:
>
>> I discover the scientific package written in python, Veusz  in
>> macupdate
>> http://www.macupdate.com/info.php/id/21029
>> The package is very interressant in oneself  but, moreover, it
>> installs
>> a  fully operational version of Pyqt in MacPython 2.4.1
>> "The installer installs Veusz 0.9 and the required PyQt 3.1.5
>> (incl. SIP
>> 4.3.1) - replacing at least in parts an already existing PyQt
>> installation!
>> REQUIREMENTS
>> Mac OS X 10.3 or later, MacPython 2.4.x, NumArray (python module) AND
>> Trolltech´s Qt/Mac 3.3.x framework on your computer! (download
>> bookmarks
>> are provided with the installer)"
>> Martin Laloux
>>
>> ___
>> Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
>> http://mail.python.org/mailman/listinfo/pythonmac-sig
>
> ___
> Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] Veusz, Pyqt

2006-03-16 Thread Ronald Oussoren
Shees, how lame can one get.  It is not that hard to use py2ap or  
even macho_standalone
to create an application bundle that doesn't need to place files all  
over the place.

Don't install this package, it will replace files in /Library/ 
Frameworks/Python.framework.

Ronald

On 16-mrt-2006, at 11:43, LALOUX Martin wrote:

> I discover the scientific package written in python, Veusz  in  
> macupdate
> http://www.macupdate.com/info.php/id/21029
> The package is very interressant in oneself  but, moreover, it  
> installs
> a  fully operational version of Pyqt in MacPython 2.4.1
> "The installer installs Veusz 0.9 and the required PyQt 3.1.5  
> (incl. SIP
> 4.3.1) - replacing at least in parts an already existing PyQt  
> installation!
> REQUIREMENTS
> Mac OS X 10.3 or later, MacPython 2.4.x, NumArray (python module) AND
> Trolltech´s Qt/Mac 3.3.x framework on your computer! (download  
> bookmarks
> are provided with the installer)"
> Martin Laloux
>
> ___
> Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


[Pythonmac-SIG] Veusz, Pyqt

2006-03-16 Thread LALOUX Martin
I discover the scientific package written in python, Veusz  in macupdate
http://www.macupdate.com/info.php/id/21029
The package is very interressant in oneself  but, moreover, it installs 
a  fully operational version of Pyqt in MacPython 2.4.1
"The installer installs Veusz 0.9 and the required PyQt 3.1.5 (incl. SIP 
4.3.1) - replacing at least in parts an already existing PyQt installation!
REQUIREMENTS
Mac OS X 10.3 or later, MacPython 2.4.x, NumArray (python module) AND 
Trolltech´s Qt/Mac 3.3.x framework on your computer! (download bookmarks 
are provided with the installer)"
Martin Laloux

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig