Commit Graph

465 Commits

Author SHA1 Message Date
Jack Jansen bb829b7c02 Getting rid of macfs. 2003-03-21 12:55:38 +00:00
Jack Jansen 60087fb450 Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
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).
2002-12-30 22:04:23 +00:00
Jack Jansen 36e142e1e6 This file hasn't been committed for a long time, because it erronuously ended
up in the Carbon package.
2002-12-30 20:20:58 +00:00
Jack Jansen 9911fc4a41 Long-obsolete, replaced by Carbon.Sound. 2002-12-30 20:18:57 +00:00
Jack Jansen 6dd561bdfd Integrated macfsn into macfs, and made the Standard File calls return the
correct FSSpec implementations.
2002-12-26 21:09:39 +00:00
Jack Jansen 315e9bebcd Return the macfs variation for FSSpec and Alias, not the underlying
Carbon.File version, so the old method names work.
2002-12-26 20:46:54 +00:00
Jack Jansen e77f58a2be Fixed typo. 2002-12-24 13:09:28 +00:00
Jack Jansen 4235e71acc A replacement for the macfs extension module, implemented with normal
(generated) Carbon module functionality.

Not 100% complete yet, but at least the IDE doesn't crash on startup.
2002-12-19 23:26:07 +00:00
Jack Jansen 4f0e05f738 Gone: the constants have been moved to macfs.py (which, upon import, also
poses as MACFS for backward compatibility).
2002-12-19 23:24:37 +00:00
Jack Jansen 58fc91f947 This module will shortly replace the builtin module macfs. It is not
complete yet, but it should work. It will be finished (and renamed)
shortly.
2002-12-17 23:28:24 +00:00
Jack Jansen b4289b5771 This now contains constants from Files.h, Aliases.h and Finder.h. 2002-12-17 22:21:57 +00:00
Jack Jansen 2519cc8eac Got rid of interpreter-internal dialogs.
Tweaked GetArgv() dialog to look better on OSX.
2002-12-13 23:52:19 +00:00
Jack Jansen b2ef47b84e More pre-carbon stuff bites the dust. 2002-12-13 22:55:09 +00:00
Just van Rossum 888e100356 - found a case where sys.path[0] isn't set to Contents/Resources,
so search the entire path.
- only add modules if we're building a standalone application.
2002-11-30 19:56:14 +00:00
Jack Jansen 362c7cd07b Lots of minor tweaks for the pep252 checkins, mainly because Qd
attributes are no longer supported.
2002-11-30 00:01:29 +00:00
Just van Rossum 24884f76c6 Forgot to do os.path.basename() on mainprogram: a nonworking app was built if the mainprogram wan't in the current directory. Fixed. 2002-11-29 21:22:33 +00:00
Just van Rossum 535ffa26e6 added Thomas H's LOADER code for importing extension (sub)modules; little tweaks 2002-11-29 20:06:52 +00:00
Just van Rossum ad692ccde1 fixed typo and wrapping 2002-11-28 18:56:50 +00:00
Just van Rossum 74bdca8a20 - Rewrote bootstapping code in sh so we're really independent of an
installed Python. So we don't use os.execve any longer, which means
we need an actual executable in <myapp>.app/Contents/MacOS. For applets
we make a symlink to the Python executable used to build the applet,
for standalone apps we simply copy it.
- Added support for the new any_missing_maybe() feature of modulefinder.py,
which is pending as patch #643711. Its use is optional so it still works
with the existing version of modulefinder.py
2002-11-28 11:30:56 +00:00
Just van Rossum cef3288247 added support for building standalone applications
- requires modulefinder.py to be on sys.path
- does *not* work for Python.framework (yet), only for static builds
2002-11-26 00:34:52 +00:00
Just van Rossum e6b49025c1 get creator code from plist if available, instead of overriding with default 2002-11-24 01:23:45 +00:00
Just van Rossum b8829b49b2 whoops, -p actually has an argument 2002-11-24 01:15:20 +00:00
Just van Rossum da302da912 cleaned up __init__ argument mess with a funky base class 2002-11-23 22:26:44 +00:00
Jack Jansen d0e59fb68d Added the alias manager too. The interface isn't perfect yet: the alias
manager doesn't always have the alias as the first argument, so things
become functions in stead of methods.
2002-11-22 15:53:32 +00:00
Jack Jansen e2ba87396c Got angry and added support for pretty much the whole file and folder
manager. This should allow us the get rid of most of the FSSpecs, only
navigation services remains to be done.
2002-11-22 14:58:35 +00:00
Just van Rossum 16aebf77c7 Added --link-exec option: make a symlink for the executable only, copy all other files. 2002-11-22 11:43:10 +00:00
Just van Rossum f7aba23644 fixed error in cmd line doc; moved funny self.name line once more 2002-11-22 00:31:50 +00:00
Just van Rossum 7fd69ad2f1 fixed stupid bug 2002-11-22 00:08:47 +00:00
Just van Rossum ceeb9627c1 added command line interface; refactored a bit; little things. 2002-11-21 23:19:37 +00:00
Just van Rossum 3e554d7b8a name kwargs kwargs 2002-11-21 10:29:57 +00:00
Just van Rossum ad33d72361 Tools to create MacOS X (application) bundles.
Todo:
- command line parsing
- main program
- modulefinder(-like ;-) support to build standalone apps.
2002-11-21 10:23:04 +00:00
Just van Rossum 10263d6e6b - cleaned up example/test code
- don't encode/escape elements
- fixed typo in doc string
- provide our own copy function for the Dict class
2002-11-20 20:47:55 +00:00
Just van Rossum db951c34e3 removed a redundant .strip(); made a doc string more or less tell the truth 2002-11-19 23:11:49 +00:00
Just van Rossum 247e16ef80 No need to import __builtin__, spotted by Skip. 2002-11-19 23:01:20 +00:00
Just van Rossum 0ec2744fb8 Pure Python implementation of a plist generator/parser. 2002-11-19 22:01:02 +00:00
Jack Jansen 180ceedc09 Python 2.2 as installed by Apple has a version of _Res that is too old. We
attempt to load an override version in this case.
2002-11-15 00:06:52 +00:00
Jack Jansen 25e61d9e0a Added a hack so we can build applets with a MacPython that uses the
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.
2002-11-15 00:05:47 +00:00
Jack Jansen b54a6ce154 A script to run applets. Originally by Just, slightly modified by me. 2002-11-15 00:04:09 +00:00
Jack Jansen eb342298de - Use imp to find appletrawmain.py in stead of hand-crafting the path
to it.
- Allow for symlinks in the applet template.
2002-11-11 00:06:14 +00:00
Jack Jansen dde800ec4e Got rid of the python.rsrc resource file. The error message strings and
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.
2002-11-07 23:07:05 +00:00
Jack Jansen 37e477216b Forward port of 1.12.14.3 (which has an incorrect log message):
if SetDates() in touched() returns an error ignore it: the user may not have
permission to change the parent folder. This is a non-serious problem,
the only function of touched() is to speed up the finder seeing the
change.
2002-10-29 22:48:43 +00:00
Jack Jansen b1248ceb90 Under Jaguar it seems that 'errn' return value keyword parameters don't
(or don't always?) show up with missed(). I think this is a bug in
Jaguar, but as it is a potential dangerous problem (the OSA event has
failed, but the Python code isn't told about this and happily continues)
this is a quick workaround.

Bugfix candidate, I'll add it to 2.2.2 as a last second fix.
2002-10-25 20:06:29 +00:00
Jack Jansen 89841bda65 Shut up FutureWarnings about hex constants. 2002-09-12 22:35:45 +00:00
Jack Jansen e87ed57ea6 Patch by Tony Lownds: add the Resources directory to sys.path. 2002-09-12 21:58:47 +00:00
Jack Jansen 2575022aef Reverted previous change, I was confused. 2002-09-10 12:22:32 +00:00
Jack Jansen bc603547ae Import Carbon.AH, not Carbon.Help 2002-09-06 23:33:31 +00:00
Jack Jansen 3a70e3f9ef Get rid of non-ascii characters. 2002-09-06 20:43:28 +00:00
Jack Jansen 4e39949d87 Initialize self._helpmenu earlier, so we can use gethelpmenu() while
building the user menus.
2002-08-30 23:01:28 +00:00
Jack Jansen f21b7063d3 Added support for the help menu. Application.gethelpmenu() will return
it.

Also fixed menu IDs to be signed in do_menudispatch. this is an incompatible
change, but I don't think it'll hurt anyone.
2002-08-29 22:04:15 +00:00
Jack Jansen 983258ed7e Revived the Carbon.Help module, but implementing the MacHelp API in stead
of the defunct Balloons API. Help tags are TBD, but at least this gives
us access to the help menu.
2002-08-29 21:09:00 +00:00