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
Jack Jansen
2095c06cec
Lots of restructuring, mostly suggested by Bill Bumgarner. Main
...
externally visible difference is that the factory defaults are
now in a plist file in the bundle, in stead of being hard-coded in
the application.
2002-11-25 13:11:06 +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
761b6095bd
hardcode some resources, removing annoying Widgets.rsrc dependency
2002-11-24 01:01:07 +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
4b5c7a4f47
Allow access to the returned value(s) as FSRefs. Unfortunately for some
...
reason getting at saveFileName doesn't work, so it currently only really
works for opening files for reading.
2002-11-22 23:39:52 +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
62a103b2fc
workaround so the (otherwise still broken) IDE can at least quit in the Python 2.2 Jaguar addon install
2002-11-22 12:48:47 +00:00
Just van Rossum
db2a0f6778
changed to use Lib/bundlebuilder.py instead of scripts/buildappbundle.py
2002-11-22 11:52:15 +00:00
Just van Rossum
e6de56e81c
make the --link option match the original: just symlink the executable
2002-11-22 11:45:42 +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
224405fcfd
Replaced the bundle building code with calls to the new bundlebuilder
...
module.
Jack: I've compared the .app output of the orginal with the new and I
can't find any significant differences. However, bundlebuilder.py
contains its' own command line interface and I think we should use
that instead. I'll have a look to see whether I can patch
Mac/OSX/Makefile.jaguar to this effect.
2002-11-22 11:10:49 +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
Jack Jansen
1b99896944
dded cvsignores.
2002-11-20 14:14:14 +00:00
Jack Jansen
d8d7bbe3b9
Minimal instructions on building a MacPython-OSX addon for Apple's
...
/usr/bin/python.
2002-11-20 14:07:57 +00:00
Jack Jansen
1ebcc4427a
Build PythonLauncher for MacPython-OSX 2.2 as well.
2002-11-20 14:06:16 +00:00
Jack Jansen
e37469297c
This file is now generated dynamically.
2002-11-20 14:05:41 +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
293fdeb31e
Another workaround, to find the IDE directory when we're in MacPython-OSX
...
on Jaguar.
Ceteram censeam W era packagendam esse.
2002-11-18 15:29:02 +00:00
Jack Jansen
972573553e
Define PyDoc_STR if it isn't defined. This makes these modules compile
...
for Python 2.2.
2002-11-18 15:26:43 +00:00
Jack Jansen
5efbbcd793
Build waste, _Help and _Scrap too.
2002-11-18 13:48:18 +00:00
Jack Jansen
26e6be3572
First stab at a Makefile that will create a MacPython that uses the
...
Apple-installed Python 2.2 from /usr/bin as it's underlying engine.
All the MacPython stuff is installed into /Applications/MacPython-OSX,
and .pth files and other magic are used to tie everything together.
So far only the raw windowing interpreter and BuildApplet work.
2002-11-15 00:13:33 +00:00
Jack Jansen
4ea1f455d7
Go from filename to FSSpec via FSRefs, to work around outdated macfs module
...
in python 2.2.
2002-11-15 00:08:29 +00:00
Jack Jansen
d892d4e1c0
Make the Resources directory if needed.
2002-11-15 00:07:31 +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
7d996a2bb7
- Building IDE is optional on waste being available, similar to building
...
IDLE (it was a fatal error before)
- Shuffled a few things around to facilitate the experimental building
of MacPython for Jaguar's pre-installed python.
2002-11-11 00:05:00 +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
65fe8dda15
Script to create .app bundles. Largely untested.
2002-11-06 23:15:51 +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
Just van Rossum
7b0255153f
'Replace all' in the find dialog didn't properly update the text view (it used to, though...). Fixed.
2002-10-24 20:03:29 +00:00
Just van Rossum
7aa7f2eb0d
cd to users home dir if no current dir has been set. Fixes bug #625734
2002-10-20 17:14:28 +00:00
Just van Rossum
3c4dee4ca7
make sure the object browser can't crash because when the list data gets bigger than 32kB
2002-09-16 21:18:49 +00:00
Just van Rossum
b7dd49453c
add ./ to configure command so it actually works verbatim
2002-09-16 20:18:27 +00:00
Jack Jansen
89841bda65
Shut up FutureWarnings about hex constants.
2002-09-12 22:35:45 +00:00
Jack Jansen
76a6ab661b
Patch by Tony Lownds: build an IDLE applet too, if _tkinter is available.
...
I modified the patch to make it a non-fatal error if IDLE isn't built.
2002-09-12 22:19:23 +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
10c6eda070
Mode rU for universal newlines, not rT. Spotted by Guido.
2002-09-12 19:41:28 +00:00