[Pythonmac-SIG] Installing 1.014 on a Macintosh (Piddle)

Louis M. Pecora pecora@anvil.nrl.navy.mil
Wed, 27 Mar 2002 07:35:56 -0500


I have solved some of my original problems (see old questions below).  

(1) The deprecated modules are modules that handle Mac APIs.  To correct the deprecation problem use an editor to go through the piddle.py code to find each old Mac module name (like Event, Fonts, Evt, Quickdraw, and Qd) and replace them with the same name, but the prefix "Carbon." added.  The dot "." at the end of Carbon is necessary.  That will cure the deprecation problem.  To its credit, Python actually tells you the new name of the module you need.  Very nice, Python guys.

(2) To install piddle, note that it uses the disutils stuff. So drag setup.py onto the interpreter and in the ensuing dialog box set the command to install and type "install" (no quotes) into the command box. Hit "OK" and things should work fine.

I am still having trouble with the QDRotate part of piddle for the Mac.  Some of you have made suggestions for curing that.  If they work, I will report back and let everyone know the cure.

Thanks for all the help.

----------------------------------------------------------
Old questions:

I have returned to Python after a year away (old version 1.52 on a Mac using sys 9.1).  I upgraded to Python 2.2 and got messages that my old version of Piddle was deprecated.  I downloaded the latest version and am stuck.  After searching the documentation I cannot find how to install it other than the statment in  the README.txt that says type in   python setup.py install  and go.  That does nothing for me in the IDE on my Mac.  I am probably missing something simple, but unless I get some plotting stuff running my return to Python will be short-lived.  Can you tell me what I'm missing so I can install a new version of Piddle on my Mac?  Thanks for any help.
----------------------------------------------------------

-- 

Cheers,

Lou Pecora