Re: [Pythonmac-SIG] [Durus-users] Problem compiling Durus on Tiger

2005-06-24 Thread Dethe Elza
On 24-Jun-05, at 7:25 AM, Mario Ruggier wrote:
> Another annoying thing is the path change for site-packages -- tiger
> now expects now that "site-packages" be appended to the panther  
> version
> of the same location...  ;-(

I use a script to tell me where site-packages is.  Save this as  
"pyext" for example and you can do things like

 >>> ls `pyext`

and tab-completion works fine with that in Bash.  If you need to find  
the site-packages for a specific python, then just run it as

 >>> /usr/local/bin/python pyext.py

assuming you call it "pyext.py" in that case...

= pyext script 
#!/usr/bin/env python
import sys
for p in sys.path:
   if p.endswith('site-packages'):
 print p
 sys.exit()

 end script =

It's not particularly elegant, but I find it useful (and not just on  
OS X).

--Dethe

Life is extinct on other planets.  Their scientists were more  
advanced than ours. --Mark Russell

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


Re: [Pythonmac-SIG] [Durus-users] Problem compiling Durus on Tiger

2005-06-24 Thread Bob Ippolito
TigerPython23Compat will add a .pth file that allows the old /Library/ 
Python/2.3 to work.



-bob

On Jun 24, 2005, at 10:25 AM, Mario Ruggier wrote:

> Yep, that did it...
>
> I installed XcodeTools, and it set up the include directly nicely,  
> and the cimpilation of durus succeeded.
>
> Another annoying thing is the path change for site-packages --  
> tiger now expects now that "site-packages" be appended to the  
> panther version of the same location...  ;-(
>
>
>
> On Jun 24, 2005, at 3:29 PM, Bob Ippolito wrote:
>
>
>> He's right, your installation is broken somehow and is missing  
>> files.  Python24Fix is only a monkeypatch to fix my distribution  
>> of Python 2.4.1, it has nothing to do with anything else.
>>
>> I'd re-install the latest Xcode with all the goodies, and if that  
>> doesn't work, then archive+install Mac OS X 10.4.  Something is  
>> wrong with your system, if you're lucky, it's just Xcode.
>>
>> -bob
>>
>> On Jun 24, 2005, at 9:16 AM, Mario Ruggier wrote:
>>
>>
>>> Hello,
>>>
>>> i was trying to install Durus object db on a new Tiger powerbook,  
>>> with
>>> just DeveloperTools and gcc-3.3 packages installed additionally.
>>> However, the following problem occurs:
>>>
>>> building 'durus._persistent' extension
>>> gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp
>>> -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall
>>> -Wstrict-prototypes
>>> -I/System/Library/Frameworks/Python.framework/Versions/2.3/include/
>>> python2.3 -c _persistent.c -o
>>> build/temp.darwin-8.1.0-Power_Macintosh-2.3/_persistent.o
>>> _persistent.c:6:20: Python.h: No such file or directory
>>> _persistent.c:7:26: structmember.h: No such file or directory
>>> ...
>>>
>>> Peter (message below) suggests Bob's TigerPython24Fix. I have  
>>> tried but
>>> it needs python 2.4 not the stock python 2.3.5.
>>>
>>> How does one fix the stock python on 10.4 ?!?
>>>
>>> mario
>>>
>>>
>>> On Jun 22, 2005, at 4:59 PM, Peter Herndon wrote:
>>>
>>>
>>>
 The Python build on Tiger is broken, it does not include the header
 file.  David, you probably did an upgrade install, or have other
 modifications made at some point that provided the header.  The  
 fix is
 at http://undefined.org/python/#TigerPython24Fix -- notice Bob's  
 note,
 "due to Tiger header regressions".  I don't think you need to  
 install
 2.4.1 in order to use the fix, though.  IIRC, I used it once I
 upgraded, and I've built extensions since then.  Durus in  
 particular.

 You may want to redirect this inquiry to the python-mac sig mailing
 list, or just get Bob Ippolito's attention.  They'll know the  
 details
 better than I.

 ---Peter Herndon
 ___
 Durus-users mailing list
 [EMAIL PROTECTED]
 http://mail.mems-exchange.org/mailman/listinfo/durus-users


>>>
>>> ___
>>> 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] [Durus-users] Problem compiling Durus on Tiger

2005-06-24 Thread Mario Ruggier
Yep, that did it...

I installed XcodeTools, and it set up the include directly nicely, and 
the cimpilation of durus succeeded.

Another annoying thing is the path change for site-packages -- tiger 
now expects now that "site-packages" be appended to the panther version 
of the same location...  ;-(



On Jun 24, 2005, at 3:29 PM, Bob Ippolito wrote:

> He's right, your installation is broken somehow and is missing files.  
> Python24Fix is only a monkeypatch to fix my distribution of Python 
> 2.4.1, it has nothing to do with anything else.
>
> I'd re-install the latest Xcode with all the goodies, and if that 
> doesn't work, then archive+install Mac OS X 10.4.  Something is wrong 
> with your system, if you're lucky, it's just Xcode.
>
> -bob
>
> On Jun 24, 2005, at 9:16 AM, Mario Ruggier wrote:
>
>> Hello,
>>
>> i was trying to install Durus object db on a new Tiger powerbook, with
>> just DeveloperTools and gcc-3.3 packages installed additionally.
>> However, the following problem occurs:
>>
>> building 'durus._persistent' extension
>> gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp
>> -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall
>> -Wstrict-prototypes
>> -I/System/Library/Frameworks/Python.framework/Versions/2.3/include/
>> python2.3 -c _persistent.c -o
>> build/temp.darwin-8.1.0-Power_Macintosh-2.3/_persistent.o
>> _persistent.c:6:20: Python.h: No such file or directory
>> _persistent.c:7:26: structmember.h: No such file or directory
>> ...
>>
>> Peter (message below) suggests Bob's TigerPython24Fix. I have tried 
>> but
>> it needs python 2.4 not the stock python 2.3.5.
>>
>> How does one fix the stock python on 10.4 ?!?
>>
>> mario
>>
>>
>> On Jun 22, 2005, at 4:59 PM, Peter Herndon wrote:
>>
>>
>>> The Python build on Tiger is broken, it does not include the header
>>> file.  David, you probably did an upgrade install, or have other
>>> modifications made at some point that provided the header.  The fix 
>>> is
>>> at http://undefined.org/python/#TigerPython24Fix -- notice Bob's 
>>> note,
>>> "due to Tiger header regressions".  I don't think you need to install
>>> 2.4.1 in order to use the fix, though.  IIRC, I used it once I
>>> upgraded, and I've built extensions since then.  Durus in particular.
>>>
>>> You may want to redirect this inquiry to the python-mac sig mailing
>>> list, or just get Bob Ippolito's attention.  They'll know the details
>>> better than I.
>>>
>>> ---Peter Herndon
>>> ___
>>> Durus-users mailing list
>>> [EMAIL PROTECTED]
>>> http://mail.mems-exchange.org/mailman/listinfo/durus-users
>>>
>>
>> ___
>> 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] [Durus-users] Problem compiling Durus on Tiger

2005-06-24 Thread Bob Ippolito
He's right, your installation is broken somehow and is missing  
files.  Python24Fix is only a monkeypatch to fix my distribution of  
Python 2.4.1, it has nothing to do with anything else.

I'd re-install the latest Xcode with all the goodies, and if that  
doesn't work, then archive+install Mac OS X 10.4.  Something is wrong  
with your system, if you're lucky, it's just Xcode.

-bob

On Jun 24, 2005, at 9:16 AM, Mario Ruggier wrote:

> Hello,
>
> i was trying to install Durus object db on a new Tiger powerbook, with
> just DeveloperTools and gcc-3.3 packages installed additionally.
> However, the following problem occurs:
>
> building 'durus._persistent' extension
> gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp
> -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall
> -Wstrict-prototypes
> -I/System/Library/Frameworks/Python.framework/Versions/2.3/include/
> python2.3 -c _persistent.c -o
> build/temp.darwin-8.1.0-Power_Macintosh-2.3/_persistent.o
> _persistent.c:6:20: Python.h: No such file or directory
> _persistent.c:7:26: structmember.h: No such file or directory
> ...
>
> Peter (message below) suggests Bob's TigerPython24Fix. I have tried  
> but
> it needs python 2.4 not the stock python 2.3.5.
>
> How does one fix the stock python on 10.4 ?!?
>
> mario
>
>
> On Jun 22, 2005, at 4:59 PM, Peter Herndon wrote:
>
>
>> The Python build on Tiger is broken, it does not include the header
>> file.  David, you probably did an upgrade install, or have other
>> modifications made at some point that provided the header.  The  
>> fix is
>> at http://undefined.org/python/#TigerPython24Fix -- notice Bob's  
>> note,
>> "due to Tiger header regressions".  I don't think you need to install
>> 2.4.1 in order to use the fix, though.  IIRC, I used it once I
>> upgraded, and I've built extensions since then.  Durus in particular.
>>
>> You may want to redirect this inquiry to the python-mac sig mailing
>> list, or just get Bob Ippolito's attention.  They'll know the details
>> better than I.
>>
>> ---Peter Herndon
>> ___
>> Durus-users mailing list
>> [EMAIL PROTECTED]
>> http://mail.mems-exchange.org/mailman/listinfo/durus-users
>>
>
> ___
> 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] [Durus-users] Problem compiling Durus on Tiger

2005-06-24 Thread Mario Ruggier
Hello,

i was trying to install Durus object db on a new Tiger powerbook, with  
just DeveloperTools and gcc-3.3 packages installed additionally.  
However, the following problem occurs:

building 'durus._persistent' extension
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp  
-mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall  
-Wstrict-prototypes  
-I/System/Library/Frameworks/Python.framework/Versions/2.3/include/ 
python2.3 -c _persistent.c -o  
build/temp.darwin-8.1.0-Power_Macintosh-2.3/_persistent.o
_persistent.c:6:20: Python.h: No such file or directory
_persistent.c:7:26: structmember.h: No such file or directory
...

Peter (message below) suggests Bob's TigerPython24Fix. I have tried but  
it needs python 2.4 not the stock python 2.3.5.

How does one fix the stock python on 10.4 ?!?

mario


On Jun 22, 2005, at 4:59 PM, Peter Herndon wrote:

> The Python build on Tiger is broken, it does not include the header
> file.  David, you probably did an upgrade install, or have other
> modifications made at some point that provided the header.  The fix is
> at http://undefined.org/python/#TigerPython24Fix -- notice Bob's note,
> "due to Tiger header regressions".  I don't think you need to install
> 2.4.1 in order to use the fix, though.  IIRC, I used it once I
> upgraded, and I've built extensions since then.  Durus in particular.
>
> You may want to redirect this inquiry to the python-mac sig mailing
> list, or just get Bob Ippolito's attention.  They'll know the details
> better than I.
>
> ---Peter Herndon
> ___
> Durus-users mailing list
> [EMAIL PROTECTED]
> http://mail.mems-exchange.org/mailman/listinfo/durus-users

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