Jack Jansen
8bf053fead
It was an old MacPython artefact that these files were still in the source
...
tree. Removed them, anyone really desparate to recover them can get them
from the CVS repository.
2002-12-13 13:38:28 +00:00
Jack Jansen
bb3e4cb14b
Tkinter isn't supported under Carbon. Under MacOSX native it is, but
...
that version doesn't need these workarounds.
2002-12-13 13:35:33 +00:00
Jack Jansen
5e13951ad7
Very outdated: this is a 68K support file.
2002-12-13 13:33:34 +00:00
Just van Rossum
71fd01c099
and now the real fix...
2002-12-13 11:07:20 +00:00
Just van Rossum
61fcf76294
fixed bool browsing bug, sf bug #652591
2002-12-13 10:58:10 +00:00
Jack Jansen
6c7e326eaa
Getting rid of pre-Carbon (MacOS8) support. All code depending on
...
TARGET_API_MAC_OS8 (or !TARGET_API_MAC_CARBON) is gone. Also some
TARGET_API_MAC_OSX conditional code is gone, because it is no longer
used on OSX-only Python (only in MacPython-OS9).
2002-12-12 10:31:54 +00:00
Jack Jansen
5f61a05d7f
Fixed so the Res.Resource() accepts either another resource, a string
...
or no argument (giving an empty resource).
2002-12-05 23:26:38 +00:00
Jack Jansen
96cebde909
Added PEP253 support to most Carbon modules. This isn't complete yet:
...
some of the more compilcated cases (CF, Res) haven't been done yet. Also,
various types should inherit from each other (anything with an as_Resource
method should be a Resource subtype, the CF types should become one family).
2002-12-03 23:40:22 +00:00
Just van Rossum
927bc451c4
- reworked the object unpacking code, now supports new-style objects more
...
or less decently/completely.
- cleaned up a little.
2002-12-01 22:10:36 +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
Jack Jansen
202355a333
Build _AE too.
2002-11-29 23:58:51 +00:00
Jack Jansen
dbd5701d73
Converted the Carbon modules to use PEP252-style objects, with
...
descriptors in stead of manual getattr hooks to get at attributes
of the objects.
For Qd I have in stead gotten rid of most of the attribute access
in favor of the carbon-style accessor methods (with the exception
of visRgn, to be done later), and of the Carbon.Qd.qd global object,
for which accessor functions are also available.
For List I have fixed the fact that various methods were incorrectly
generated as functions.
CF is untouched: PEP252 doesn't allow "poor-mans-inheritance" with
basechain, so it will have to wait for PEP253 support.
2002-11-29 23:40:48 +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
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
Jack Jansen
ec694c32a7
Pass None to AHGotoPage().
2002-09-11 22:05:59 +00:00
Jack Jansen
f6b3fddfc3
The debugger source view only understood mac-style linefeeds. Fixed.
2002-09-11 22:05:02 +00:00
Jack Jansen
93ad6a7a3b
Converted to Vise 8.
2002-09-11 00:55:48 +00:00
Jack Jansen
17d67f07cd
All set for 2.3 installer, except for upgrade of Vise version.
2002-09-10 21:15:44 +00:00
Jack Jansen
a0d1833639
Fixed typo spotted by Whomas Touters.
2002-09-10 20:07:34 +00:00
Jack Jansen
47ec141963
Added include guards and C++ extern "C" {} constructs. Partial fix for #607253 .
...
Bugfix candidate.
2002-09-10 12:32:47 +00:00
Jack Jansen
2575022aef
Reverted previous change, I was confused.
2002-09-10 12:22:32 +00:00
Jack Jansen
796e5f75e2
Next few steps towards a 2.3 installer.
2002-09-07 00:10:31 +00:00
Jack Jansen
481fddfc46
First steps towards a 2.3 installer.
2002-09-06 23:37:07 +00:00
Jack Jansen
277fc7efce
Enable _AH module.
2002-09-06 23:33:40 +00:00
Jack Jansen
bc603547ae
Import Carbon.AH, not Carbon.Help
2002-09-06 23:33:31 +00:00
Jack Jansen
7f677f49ea
Reorganized order of help menu, and don't show Carbon documentation
...
entries on OS9 (where they are never available, and simply disabling
them might lead people to think otherwise).
2002-09-06 23:03:32 +00:00
Jack Jansen
25a8f0d5f8
Silly me, I enabled the old help module. Fixed.
2002-09-06 22:59:00 +00:00
Jack Jansen
b34101162d
Added carbon Help module.
2002-09-06 22:41:03 +00:00
Jack Jansen
521dd9f231
Upped the stack size to 256KB. test_class ran afoul of the 64K limit, and this is probably a better fix than lowering the recursion limit.
2002-09-06 21:59:21 +00:00
Jack Jansen
fdf427f584
Updated the notes on building a binary installer.
2002-09-06 21:55:47 +00:00
Jack Jansen
997429a5f4
The script was very sloppy about which variables held source pathnames
...
and which held destination pathnames. Fixed.
2002-09-06 21:55:13 +00:00
Jack Jansen
1f74ed8c4c
Fixed a typo in the binary install notes
...
rewrapped: as usual with my files everything was far wider than 80 chars.
2002-09-06 21:00:55 +00:00
Jack Jansen
3a70e3f9ef
Get rid of non-ascii characters.
2002-09-06 20:43:28 +00:00
Jack Jansen
82a9b60b86
Use PyString_CHECK_INTERNED.
2002-09-06 20:42:27 +00:00
Jack Jansen
8ba4220637
Started on documentation for building a MacOSX binary installer.
...
Unfinished.
2002-09-06 20:24:51 +00:00
Jack Jansen
3337ea731b
Remove .pyo files too.
2002-09-06 20:23:09 +00:00
Jack Jansen
a6db44f169
Script to generate .pkg packages, donated by Dinu Gherman. This is his
...
original code, it still needs fiddling to make it work in general
circumstances.
2002-09-06 19:47:49 +00:00
Jack Jansen
94fab762de
Generate pythonw.sh on the fly.
...
Use the build python for as many things as possible.
2002-09-02 12:29:11 +00:00
Jack Jansen
e3d9f405e9
Pass -x badsyntax to compileall.
...
Tweaks to make builds work for non-standard dstroot.
2002-09-02 12:16:00 +00:00
Jack Jansen
b2d2bc9a55
Implemented the Help menu. The Python manual can be viewed (if installed)
...
and the selection can be looked up, and so can the Carbon manual. From the
help menu you can also get to the online documentation, the Python website
and the MacPython page.
Untested in MacPython-OS9.
2002-08-31 01:25:17 +00:00
Jack Jansen
6be89564cc
If there's an environment variable PYTHONIDEPATH it points to the IDE
...
folder. This allows running the IDE from the source tree on OSX.
2002-08-31 01:22:37 +00:00
Jack Jansen
f94cadf456
MenuID's are signed.
2002-08-31 01:20:53 +00:00
Jack Jansen
fe9acdea8a
Typecode for AHTOCType was wrong. Fixed.
2002-08-30 23:02:09 +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
bdbff73feb
Fix for Jaguar: use ln for installing symlinks, install no longer works.
...
Fix for sh: use : in stead of an empty then clause in an if.
2002-08-30 15:14:02 +00:00
Jack Jansen
b05e056e9f
On Jaguar the default mode for files in the installed product is 444 (or 555)
...
in stead of 644 (755). This makes a subsequent install fail. Changed
the INSTALL_MODE_FLAG to fix this.
2002-08-30 12:56:08 +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
Jack Jansen
afb76320ab
Don't copy the documentation when using Python.app as an applet template.
2002-08-29 20:20:24 +00:00
Jack Jansen
278a3a22d7
Distutils-based script by Bill Fancher to download the Python documentation
...
HTML tarball and use it to create a documentation tree readable and
searchable with Apple Help Viewer. The documentation also shows up in
Project Builder (if you add Python.framework to your project).
2002-08-28 22:22:10 +00:00
Jack Jansen
4684a09fc5
- Install a symlink to the documentation (which lives in the framework)
...
in Python.app, and refer to it in Info.plist. This makes Apple Help
Viewer recognize the Python documentation.
- Changed the externally visible name of Python.app to "Python" (was PythonW).
2002-08-28 21:27:02 +00:00
Jack Jansen
f90367c6d4
This file never made it to the repository, somehow.
2002-08-28 21:19:26 +00:00
Jack Jansen
5472376f0d
These were regenerated some time ago (with ascii chars only and
...
fully qualified imports) but somehow not checked in yet.
2002-08-28 21:18:37 +00:00
Jack Jansen
4f2d89f1f8
Interface to Apple Help Viewer.
2002-08-28 21:16:53 +00:00
Jack Jansen
fd372aa8e9
Don't build ConfigurePythonCarbon and ConfigurePythonClassic any longer,
...
classic Python is gone.
2002-08-22 23:37:00 +00:00
Jack Jansen
5fd945895e
For MacPython-OS9 verbose is the default.
2002-08-22 23:36:11 +00:00
Jack Jansen
d59f8d0691
Interface to Apple Help Manager.
2002-08-22 23:31:37 +00:00
Jack Jansen
f34a8bced2
Moved CoreFoundation type support to bgen/macsupport.
2002-08-22 23:30:49 +00:00
Jack Jansen
286e838f22
Added PyDoc_STR's.
2002-08-22 23:29:45 +00:00
Jack Jansen
0281512b87
Merged the MacPython thanks list into the general acknowledgements.
...
There's really no point in a separate list of thank-you notes.
2002-08-19 13:17:39 +00:00
Jack Jansen
58ba80a6a6
Refuse to run if the last bit of the destination path contains a # character.
...
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 .
2002-08-18 21:57:09 +00:00
Jack Jansen
49931887d7
Regenerated with PyDoc_STR() around docstrings.
2002-08-16 09:09:31 +00:00
Jack Jansen
7ca993ed37
Fixed the bugs in the constant definitions, and in the code to test
...
them.
The FutureWarnings are still there, until a way has been found to
say "I know what I'm doing here when I say 0xff000000".
2002-08-15 22:05:58 +00:00
Jack Jansen
87eea88b5a
After generating the Python file with definitions try to run it, so
...
we catch errors during the build process in stead of later during runtime.
2002-08-15 21:48:16 +00:00
Jack Jansen
81204152d4
Try to cater for a source tree checked out with MacCVS in stead of
...
unix cvs. In this case the resource files are actual resource files
in stead of AppleSingle encoded files.
2002-08-15 21:31:18 +00:00
Jack Jansen
7a1703d8cb
Updated for the current state of affairs.
2002-08-12 20:46:18 +00:00
Jack Jansen
45c8e92728
- Precompile py files in Mac subtree after installing
...
- Pre-cache .rsrc files in Mac subtree after installing
- Fixed nameclash in Make variables
2002-08-09 14:15:46 +00:00
Jack Jansen
ccd8e8d741
- Check not only that cache file exists, but also that it is newer than
...
the applesingle file.
- Added optional verbose option for cachersrc tool.
2002-08-09 13:44:03 +00:00
Jack Jansen
b8da8d7761
Tool to pre-created cached .rsrc.df.rsrc files in the Lib directories,
...
similar to compileall.py.
2002-08-09 13:42:55 +00:00
Jack Jansen
d77f93ad81
Obsolete now that there's a python implementation of strptime in the
...
standard lib.
2002-08-09 10:22:11 +00:00
Jack Jansen
f1148f0bb3
Patch by Russel Owen: if we have command line arguments zap pyc files
...
in the directories given.
2002-08-09 10:17:28 +00:00
Jack Jansen
a70ab8cd4f
Depracated some non-carbon modules.
2002-08-09 09:03:31 +00:00
Jack Jansen
9536bcbfd8
This file should have gone long ago.
2002-08-09 09:02:01 +00:00
Jack Jansen
cb4321eb17
By popular demand the frameworkinstall target now installs everything:
...
the framework, the MacOSX apps and the unix tools.
Most of the hard work is done by Mac/OSX/Makefile.
Also, it should now be possible to install in a different directory,
such as /tmp/dist/Library/Frameworks, for building binary installers.
The fink crowd wanted this.
2002-08-09 00:18:21 +00:00
Jack Jansen
617e2305ee
Use hex escape for non-ascii chars, now that the parser wants that.
...
Good thing, too: some of the characters had been mangled by OS9->CVS->OSX
roundtrips.
2002-08-08 21:16:56 +00:00
Jack Jansen
295105f3aa
Regenerated with OSA class inheritance and fix for non-ascii chars.
2002-08-07 15:53:42 +00:00
Jack Jansen
7ff034b65b
Fixed incorrect logic in determining whether we should initialize
...
the classes' attribute list.
2002-08-07 15:52:44 +00:00
Jack Jansen
21f675826e
- If an OSA identifier is a Python reserved word we now append an _
...
in stead of prepending it, which messes up "import * from".
- A few ascii()s added again.
- Changed the getbaseclasses a little, but it still isn't perfect.
2002-08-07 15:44:53 +00:00
Jack Jansen
2f7f8c4a64
Don't be over-enthusiastic with the ascii() calls: we don't need it if
...
the result passes through backticks.
2002-08-07 15:05:42 +00:00
Jack Jansen
8b77767094
Donovan Preston's patch #538395 , with some mods by me.
...
This patch makes inheritance for OSA classes work. The implementation is a
bit convoluted, but I don't immedeately see a simpler way of doing it.
I added calls to ascii() everywhere we output strings that may contain
non-ascii characters (Python has gotten very picky since the encoding
patch:-).
I also removed Donovan's different way of opening resource files: I don't
seem to need it.
2002-08-07 14:49:00 +00:00
Jack Jansen
b2bb87300b
Quote the arguments, they may contain strings.
2002-08-07 14:05:58 +00:00
Jack Jansen
9c5b61b21b
Patch #567296 by Pim Buurman, slightly modified by me so it can be disabled
...
at compile time: use PBGetCatInfoSync() to get FInfo data in stead of
GetFInfo. The latter doesn't work for folders. The former does, at
least on OSX, and insofar the info makes sense for a folder.
2002-08-06 12:59:44 +00:00
Jack Jansen
137d8c5667
Wrapper around _IBCarbon.
2002-08-06 09:32:57 +00:00
Jack Jansen
94caa78ebf
Patch by Ronald Oussoren: if there's a .lproj in the extras list also
...
check whether it contains a .nib, and do the Cocoa song and dance if
it does.
2002-08-05 22:06:29 +00:00
Jack Jansen
0a9d7559e8
In copy() don't try to obtain an FSSpec until we know the destination
...
exists. Partial fix for #585923 .
2002-08-05 21:53:57 +00:00
Jack Jansen
20417bcd18
Better output for errors, and some progress reports.
...
Handle the two modules with non-standard scanner module names.
2002-08-05 21:14:16 +00:00
Jack Jansen
c4ff194bdd
Fixed the last two bgen-based modules to be buildable on OSX.
2002-08-05 21:13:07 +00:00
Jack Jansen
aaebdd6a02
Enable building of Carbon toolbox modules with unix-Python.
2002-08-05 15:39:30 +00:00
Jack Jansen
ff8dec7427
Got rid of staticforward.
2002-08-05 15:36:57 +00:00
Jack Jansen
a4741ffe63
This can now run under unix-Python too. You have to pass the folder
...
to search on the command line in that case.
2002-08-05 15:33:44 +00:00
Jack Jansen
6573f31874
Moved bgenlocations to the Mac/Lib directory. Not perfect, but better than
...
where it was: it is really a configuration file, not a normal module.
By moving it into Mac/Lib we can now also store the location of bgen
itself in there, which is needed because bgen isn't installed.
2002-08-05 14:56:04 +00:00
Jack Jansen
ace9d955b0
Renamed Py_Main to PyMac_Main as it has a different signature than the "normal" Py_Main, and that signature has appeared in a .h file.
2002-08-05 14:13:31 +00:00
Jack Jansen
3bd3fedeca
Added _IBCarbon module.
2002-08-05 14:12:24 +00:00
Jack Jansen
83f5c38403
The definitions for IBCarbonRuntime.h
2002-08-04 22:03:36 +00:00
Jack Jansen
acbaefd796
Updated to something that works on my system, and regenerated module.
2002-08-04 21:59:37 +00:00
Jack Jansen
0c069924e5
Donovan Preston's interface to IBCarbon, allowing you to use Interface
...
Builder carbon NIB files from Python. As-is, I may need to twiddle a few
things as he donated this long ago.
Donovan is now one of the four people in the world who know how to drive
bgen!
2002-08-04 21:34:24 +00:00
Jack Jansen
d64845dbbe
Mkdirs() failed when provided with unix pathnames. Fixed.
2002-08-03 20:49:10 +00:00