Re: [Pythonmac-SIG] .pth use
All my hullabaloo about maybe helping with the simpler questions and I can't even wipe yet :~) I forgot how (where) I set up a .pth file back in the Panther and Bob's new right way of including Python 2.4 in Tiger got me all confused. So I looked back at Bob's notes, got frustrated looking for /usr/bin/local when maybe I should have been looking for /usr/ local/bin - anyway it has been a long day what with college graduation festivities and all the inlaws :~) - another generation hits the streets. I put my little common Python utilities in a separate folder and did not want to fool with Pythonpath to import them while testing so I found a place for a .pth file that worked, but I'm wondering if I am doing what is intended/acceptable? What worked (at least so far) was to put a .pth file (containing / Users/Chinook/PythonProjects/MyUtilities) in /Library/Frameworks/ Python.framework/Versions/2.4/lib/python2.4/site-packages So am I violating the proper Mac way scripture? Thanks and to all a good night, Lee C (Trying to solve the riddle of the cosmos and can't add 2 and 2 anymore) ___ Pythonmac-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] .pth use
On 5/22/05, Lee Cullens <[EMAIL PROTECTED]> wrote: > What worked (at least so far) was to put a .pth file (containing / > Users/Chinook/PythonProjects/MyUtilities) in /Library/Frameworks/ > Python.framework/Versions/2.4/lib/python2.4/site-packages Since this is a user-specific path, you should put it in ~/Library/Python/2.4/site-packages (/Users/Chinook/Library/Python/2.4/site-packages) You'll likely have to create that directory. Kevin ___ Pythonmac-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] .pth use
Ah-ha, that's what I (didn't quite) remember from before, but I wasn't thinking of the rational late last-night. I didn't notice it in sys.path last-night either, but I moved the .pth file and lo and behold it works great. The world is full of wonders to the simple minded like me :~) Thanks for the assistance Kevin and I hope you're having a great weekend, Lee C On May 22, 2005, at 9:33 AM, Kevin Dangoor wrote: > On 5/22/05, Lee Cullens <[EMAIL PROTECTED]> wrote: > >> What worked (at least so far) was to put a .pth file (containing / >> Users/Chinook/PythonProjects/MyUtilities) in /Library/Frameworks/ >> Python.framework/Versions/2.4/lib/python2.4/site-packages >> > > Since this is a user-specific path, you should put it in > ~/Library/Python/2.4/site-packages > > (/Users/Chinook/Library/Python/2.4/site-packages) > > You'll likely have to create that directory. > > Kevin > ___ Pythonmac-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] .pth use
On May 22, 2005, at 12:15 AM, Lee Cullens wrote: > All my hullabaloo about maybe helping with the simpler questions and > I can't even wipe yet :~) > > I forgot how (where) I set up a .pth file back in the Panther and > Bob's new right way of including Python 2.4 in Tiger got me all > confused. So I looked back at Bob's notes, got frustrated looking > for /usr/bin/local when maybe I should have been looking for /usr/ > local/bin - anyway it has been a long day what with college > graduation festivities and all the inlaws :~) - another generation > hits the streets. http://www.google.com/search?client=safari&rls=en&q=pth +files&ie=UTF-8&oe=UTF-8 ... or: http://bob.pythonmac.org/archives/2005/02/06/using-pth-files- for-python-development/ -bob ___ Pythonmac-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] numarray 1.1.1 w/ vecLib (Apple's optimized implementation of BLAS)
Hi Bob (&c)- > >> Any chance of an updated package for numarray 1.3.1? (Or just hints on > >> fixing the installer which doesn't quite pick up veclib correctly, I > >> think!)? > > > > Unfortunately I'm out of town (in SF/Berkeley rather than NYC) for > > about a month and don't have good access to a Panther machine (I only > > brought my laptop, which runs Tiger). Out of curiosity (since I'll upgrade to Tiger soon), why does this matter? > However, it seems that there are some bugs in the script, but you've > inspired me to hunt for them. > > First, the section of addons.py that checks for the existence of the > framework (around line 47) needs to set lapack_dirs = [], I think, > since it needs to exist later on. > > Second, the section after that that sets lapack_compile_args, > lapack_link_args and lapack_include_dirs for *all* cases (lines 57-60) > overwrites lapack_link_args from the if...elif...else above. > > Finally, cblas.h isn't included correctly, since the framework option > is only used for linking, not compiling. > > The overall solution to this was actually to reorder the sections and > make some changes to the part that checks for veclib > Feel free to use this if you do package it up. Is there any easy way to > pass this on to the numarray people? I've hard from Chris Barker that I should post to numpy-discussion, which I will do unless I get any negative feedback here. (I've actually made a patchfile, attached.) Andrew __ Andrew Jaffe Astrophysics Group+44 207 594-7526 Blackett Laboratory, Room 1013FAX 7541 Imperial College, Prince Consort Road London SW7 2AZ ENGLAND http://astro.imperial.ac.uk/~jaffe numarray131-addons.patch Description: Binary data ___ Pythonmac-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] numarray 1.1.1 w/ vecLib (Apple's optimized implementation of BLAS)
On May 22, 2005, at 9:34 AM, Andrew Jaffe wrote: Any chance of an updated package for numarray 1.3.1? (Or just hints on fixing the installer which doesn't quite pick up veclib correctly, I think!)? >>> >>> Unfortunately I'm out of town (in SF/Berkeley rather than NYC) for >>> about a month and don't have good access to a Panther machine (I >>> only >>> brought my laptop, which runs Tiger). >>> > > Out of curiosity (since I'll upgrade to Tiger soon), why does this > matter? Software compiled on Tiger doesn't run on Panther, in general. -bob ___ Pythonmac-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] .pth use
Yes Bob, I had read your notes before posting. I knew what I wanted to do, just got myself in a dither about where it should be placed. With a new day came collected thoughts and all the in-laws gone :~) Thanks Lee C On May 22, 2005, at 11:04 AM, Bob Ippolito wrote: > > On May 22, 2005, at 12:15 AM, Lee Cullens wrote: > > >> All my hullabaloo about maybe helping with the simpler questions and >> I can't even wipe yet :~) >> >> I forgot how (where) I set up a .pth file back in the Panther and >> Bob's new right way of including Python 2.4 in Tiger got me all >> confused. So I looked back at Bob's notes, got frustrated looking >> for /usr/bin/local when maybe I should have been looking for /usr/ >> local/bin - anyway it has been a long day what with college >> graduation festivities and all the inlaws :~) - another generation >> hits the streets. >> > > http://www.google.com/search?client=safari&rls=en&q=pth > +files&ie=UTF-8&oe=UTF-8 > > ... or: http://bob.pythonmac.org/archives/2005/02/06/using-pth- > files-for-python-development/ > > -bob > > ___ Pythonmac-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/pythonmac-sig
[Pythonmac-SIG] Is this the correct way to have installed and to use Python 2.4
I just downloaded and installed the Tiger 2.4 Python mpkg (including the fix afterwords), mainly so I could use Bob's great looking xattr module. Bringing up 'python' in a terminal brings up 2.3.whatever, and I assume that's because the version in /System/Library hasn't been disturbed and is first on the default search path--please correct me if I'm wrong. What is the best (a subjective consideration, to be sure) to use python 2.4 while making sure that I don't mess up the Apple-installed version for anything important. Should I put /usr/local/bin on the default path? Should I create a link to python 2.4 in /usr/bin, and if so, should I replace the current 'python', or should I create a new name like 'py' so that 2.3 is still accessible using 'python' on the command line. What do I need to think about in terms of making sure things I install in the future will be compiled against 2.4, and will be available on the python path. Thanks for all the help, Ken ___ Pythonmac-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Is this the correct way to have installed and to use Python 2.4
On May 22, 2005, at 12:40 PM, Kenneth McDonald wrote: > I just downloaded and installed the Tiger 2.4 Python mpkg (including > the fix afterwords), mainly so I could use Bob's great looking xattr > module. Bringing up 'python' in a terminal brings up 2.3.whatever, and > I assume that's because the version in /System/Library hasn't been > disturbed and is first on the default search path--please correct me > if I'm wrong. Change your PATH environment variable to put /usr/local/bin before / usr/bin or equivalent. -bob ___ Pythonmac-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Is this the correct way to have installed and to use Python 2.4
Bob Ippolito wrote: > Change your PATH environment variable to put /usr/local/bin before / > usr/bin or equivalent. That's option A. Option B. is to use "python2.4" when you want 2.4, either at the command line, or in a script's #! line: #!/usr/bin/env python2.4 I'm pretty sure Bob's 2.5 package installs a binary (or a link) called python2.4 If it doesn't work, you may need to put /usr/local/bin on your PATH. I prefer this option because in unequivocally will run ONLY with 2.4, and you've made it clear in your source that that is how it's been tested. It's the ONLY way to go if you want to have multiple versions installed,a nd be able to test against them easily. It also means that when you install 2.5, all the scripts that use 2.4 will still work, and indeed, any of the scripts you now have using 2.3 will still work. I got into this habit when running RedHat Linux, which REQUIRED "python" to be the one they had installed (1.5.6 for a LONG time). I don't' know how Apple has used python, and I think OS-X is less likely to use a PATH you've set for system scripts, but I still like this approach better. -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [EMAIL PROTECTED] ___ Pythonmac-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/pythonmac-sig
[Pythonmac-SIG] Building Twisted
Hi folks, Has anyone installed twisted 2.0 on Tiger? I don't think I've ever had trouble building Twisted before, but now they've made it dependent on Zope Interfaces, which won't build for me. I'm running OS 10.4, Bob's Python 2.4, latest svn of PyObjC and py2app. Here's the traceback I'm getting when I try to build Zope Interfaces 3.0.1: $ python setup.py build running build running build_py running build_ext building 'zope.interface._zope_interface_coptimizations' extension gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused- madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes - IDependencies/zope.interface-ZopeInterface-3.0.1/zope.interface -I/ Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -c Dependencies/zope.interface-ZopeInterface-3.0.1/zope.interface/ _zope_interface_coptimizations.c -o build/temp.darwin-8.1.0- Power_Macintosh-2.4/Dependencies/zope.interface-ZopeInterface-3.0.1/ zope.interface/_zope_interface_coptimizations.o Dependencies/zope.interface-ZopeInterface-3.0.1/zope.interface/ _zope_interface_coptimizations.c:339: error: static declaration of 'SpecType' follows non-static declaration Dependencies/zope.interface-ZopeInterface-3.0.1/zope.interface/ _zope_interface_coptimizations.c:73: error: previous declaration of 'SpecType' was here error: command 'gcc' failed with exit status 1 Since when do either Zope or Twisted require binary components anyway? --Dethe ___ Pythonmac-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Building Twisted
On May 22, 2005, at 11:11 PM, Dethe Elza wrote: > Has anyone installed twisted 2.0 on Tiger? > > I don't think I've ever had trouble building Twisted before, but now > they've made it dependent on Zope Interfaces, which won't build for > me. > I'm running OS 10.4, Bob's Python 2.4, latest svn of PyObjC and > py2app. Here's the traceback I'm getting when I try to build Zope > Interfaces 3.0.1: Just install the zope.interfaces from http://pythonmac.org/packages/ -- unless you don't trust me, in which case, I don't care :) It's a dumb bug in the z.i sources that gcc4 doesn't like. It probably compiles if you gcc_switch to 3.3. I recall that someone sent the z.i guys a patch, I don't know why they haven't made a 3.0.2 release yet. Lazy, I guess :) > Since when do either Zope or Twisted require binary components anyway? Since Zope 3 and Twisted 2. -bob ___ Pythonmac-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/pythonmac-sig
