summaryrefslogtreecommitdiff
path: root/Mac/Lib/buildtools.py
Commit message (Collapse)AuthorAgeFilesLines
* Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used bothJack Jansen2002-12-301-521/+0
| | | | | | | in MacPython-OS9 and MacPython-OSX (or the equivalent unix Python on Mac OS X). The only items remaining in Mac/Lib are modules that are meaningful only for MacPython-OS9 (CFM stuff, MacPython preferences in resources, etc).
* Added a hack so we can build applets with a MacPython that uses theJack Jansen2002-11-151-0/+11
| | | | | OSX 10.2 apple-supplied Python as its base: if we've copied a symlink as the executable we remove it and install appletrunner in stead.
* - Use imp to find appletrawmain.py in stead of hand-crafting the pathJack Jansen2002-11-111-2/+5
| | | | | to it. - Allow for symlinks in the applet template.
* Got rid of the python.rsrc resource file. The error message strings andJack Jansen2002-11-071-42/+15
| | | | | | | | | | dialogs are now stored in Mac/Lib, and loaded on demand through macresource. Not only does this simplify a MacPython based on Apple's Python, but it also makes Mac error codes come out symbolically when running command line python (if you have Mac/Lib in your path). The resource files are copied from Mac/Resources. The old ones will disappear after the OS9 build procedure has been adjusted.
* Don't copy the documentation when using Python.app as an applet template.Jack Jansen2002-08-291-0/+1
|
* Refuse to run if the last bit of the destination path contains a # character.Jack Jansen2002-08-181-1/+4
| | | | | | | | | | | This is a silly workaround for a rather serious bug in MacOSX: if you take a long filename and convert it to an FSSpec the fsspec gets a magic cooky (containing a #, indeed). If you then massage the extension of this fsspec and convert back to a pathname you may end up referring to the same file. This could destroy your sourcefile. The problem only occcurs in MacPython-OS9, not MacPython-OSX (I think). Closes bug #505562.
* Patch by Ronald Oussoren: if there's a .lproj in the extras list alsoJack Jansen2002-08-051-1/+10
| | | | | check whether it contains a .nib, and do the Cocoa song and dance if it does.
* Final step in making applets first-class citizens: if the applet wantsJack Jansen2002-08-021-0/+10
| | | | | | | | | argv emulation (i.e. if the end user drops files and folders on the applets these will show up in sys.argv) BuildApplet will add the required code to the applet bundle, in __rawmain__.pyc. This code is compiled from appletrawmain.py, it creates sys.argv, cleans up most of the mess and executes either __main__.py or __main__.pyc.
* - Slightly better error message in case of syntax errors in the script.Jack Jansen2002-08-021-3/+5
| | | | | - The applet .rsrc file should be called python.rsrc, it is not based on the applet name.
* Open the source file in universal newline mode.Jack Jansen2002-06-201-1/+1
|
* - Better commandline interface to BuildApplet, complete with options,Jack Jansen2002-06-091-45/+96
| | | | | | | verbose output to the console, etc. - Allow Cocoa applets to be built with BuildApplet. No full testing has been done yet to ensure OS9 operation hasn't suffered.
* Handle .icns and .plist files for applets.Jack Jansen2002-03-291-5/+23
| | | | | Also, for now (until we learn to parse .plist files) we make a special case for the IDE, setting the creator to "Pide".
* Implemented buildtools for MachoPython .app bundles. The API is compatibleJack Jansen2002-03-291-2/+150
| | | | enough that IDE and BuildApplet can create applets, yeah!
* Import the MacOS toolbox modules from the Carbon package.Jack Jansen2001-08-251-1/+1
|
* Allow selecting a template in findtemplate(), so Classic programs can build ↵Jack Jansen2001-02-171-6/+8
| | | | Carbon applets and vice-versa.
* Use FSpCreateResFile() in stead of CreateResFile().Jack Jansen2001-01-291-1/+1
| | | | Don't call OpenDeskAcc() and AppendResMenu() on Carbon.
* Set the finder "is shared" bit, by request of Joe Strout. It seems this ↵Jack Jansen1999-12-031-1/+1
| | | | | | allows multiple simultaneous copies to be run from a server, and Applets shouldn't write their datafork so it appears safe.
* Remove all owner resources from template, and if no owner resource contained inJack Jansen1999-03-171-14/+22
| | | | applet-specific rsrc file we add a "Pyta" owner resource. Owner resources have both id=0 and name="Owner resource" (is this always true?).
* (finally) unified the interpreter and the applet as Just suggested ages ago. TheJack Jansen1999-02-141-1/+1
| | | | resulting program is called PythonInterpreter.
* set 'preload' attribute for __main__ PYC resource -- jvrJust van Rossum1999-01-301-0/+3
|
* skip 'vers' resource when copying resources from templeate -- jvrJust van Rossum1999-01-301-1/+1
|
* Common code for BuildApplet, BuildApplication and fullbuild (Just)Jack Jansen1998-07-311-0/+279