Jack Jansen
dded84802a
Allow unicode pathnames where FSRefs are expected. Fixes 696253.
2003-03-11 21:48:57 +00:00
Jack Jansen
45f5c4ab3e
Removed unused variable
2003-03-07 15:37:31 +00:00
Jack Jansen
1d0c6cfd9f
Got PythonStandalone to work again, mainly for debugging purposes (it's much easier to debug GUSI errors in a static build).
2003-03-07 15:36:13 +00:00
Jack Jansen
fa1bf1c518
First try to use the OSATerminology module to get the terminology
...
resources before reverting to manually reading the resources.
Unfortunately there is still a bug in here somewhere: it doesn't work
for all applications.
2003-03-06 23:04:38 +00:00
Jack Jansen
ee1c85c8eb
Various tweaks by Jack because of the different module name, adaptation
...
to the Python style, etc.
2003-03-06 23:02:59 +00:00
Jack Jansen
86f25fb1d2
Module to get OSA terminology description through the "official channels",
...
in stead of manually getting the AETE/AEUT resource. Donated by Donovan
Preston. This is his original code (but with the filename changed) checked
in for reference only.
2003-03-06 23:02:04 +00:00
Jack Jansen
62442c295a
Fix for bug #697546 : don't auto-register the Python documentation
...
by putting the help book in an array. Somehow the fact that Python.app
(and, hence, pythonw) got an automatic help menu messed up Tkinter's
handling of the help menu.
2003-03-05 16:13:19 +00:00
Jack Jansen
0d58ba9fda
These are no longer used.
2003-03-05 09:37:19 +00:00
Jack Jansen
5125c76b68
Gave the text fields a little more space, so they don't get cut off.
2003-03-03 14:56:59 +00:00
Jack Jansen
885d4f6577
Mod to previous checkin: we must require ascii, not system defautl encoding,
...
because we have no easy way to convert the python encoding string to
a CF encoding parameter.
2003-03-03 13:19:44 +00:00
Jack Jansen
d505cab5b3
Accept only the system default encoding when converting Python
...
strings to CF strings. Fixes 682215.
2003-03-03 13:12:59 +00:00
Jack Jansen
122152451e
Don't call AEInteractWithUser unconditionally on a quit appleevent. The
...
EasyDIalogs methods will call it if needed.
Fixes #684975 .
2003-03-03 12:28:04 +00:00
Jack Jansen
d5532affd8
Check modes on install and temporary directories. Fixes #693230 .
2003-02-28 15:19:51 +00:00
Jack Jansen
f1728713cc
Removed silly print.
2003-02-28 15:18:59 +00:00
Jack Jansen
f92ec2d191
StdFilterProc() uses InOut parameters.
2003-02-27 22:50:50 +00:00
Jack Jansen
c00b6d7a0a
Added an "Open Recent" command. Fixes 607810.
2003-02-25 15:08:02 +00:00
Jack Jansen
04087b56ec
In Mac OS X framework builds don't assume that the executable will be
...
called python.exe but actually pass it from the main Makefile to
Mac/OSX/Makefile. This makes framework builds work again on case
sensitive filesystems. Fixes bug #677753 .
2003-02-25 12:41:10 +00:00
Jack Jansen
ec43f64092
Fix building of Idle applet.
2003-02-24 16:30:24 +00:00
Jack Jansen
af1d4225b8
Allow specifiying the destination for --extra files (default: same
...
filename as the source, but in Contents/Resources in the app bundle).
2003-02-24 16:28:37 +00:00
Jack Jansen
8cd9a4fded
Added a linkmodel attribute, showing how Python was built. This is so
...
packages can check that extension modules are built for the right type
of python. Current values can be static, framework, shared and cfm (for
completeness, for MacPyton-OS9).
Closes bug #691889 . The reporter suggests backporting this to 2.2.3
and I think I agree.
2003-02-23 23:23:47 +00:00
Jack Jansen
5bb97e66dc
Checking mac-specific stuff from the 2.3a2 branch in on the trunk.
2003-02-21 22:33:55 +00:00
Jack Jansen
2bc4a47c86
WASTEconst.py goes one level above the toolbox directory.
2003-02-21 22:11:45 +00:00
Jack Jansen
d7c1723742
Added a method WMAvailable(). This will return True if and only if there
...
is a window manager and we can connect to it, i.e. if it is safe to try
and put up windows.
As a side effect the first call will make the current process frontmost.
2003-02-21 16:31:11 +00:00
Jack Jansen
cef2f7cd18
Use pythonw as the default interpreter also for .py scripts (overridable
...
by the user), as this will cause the least surprises with scripts
brought over from other unixen. Suggested by Kevin Altis.
2003-02-19 10:37:08 +00:00
Jack Jansen
4ccf3e14f0
Undid half of the previous checkin: continue using BuildApplet for most
...
applets. PackageManager is still built with bundlebuilder itself.
2003-02-18 23:33:39 +00:00
Jack Jansen
3d3b74677a
Optionally honour #! paths in scripts. Fixes #676358 .
2003-02-17 15:40:00 +00:00
Jack Jansen
fd3e54c68e
When building an applet clear out the tempfile and dir afterwards.
2003-02-16 21:28:51 +00:00
Jack Jansen
d2c684f79f
Moved setupDocs.py to Doc/setup.py and did some cleanup. It now at least
...
allows bdist, but it's still one big hack:-(
2003-02-14 23:46:22 +00:00
Jack Jansen
4ab8437e7f
Allow opening of alternate databases.
2003-02-14 14:13:25 +00:00
Jack Jansen
f68043c4a9
Got building documentation from source to work.
2003-02-14 12:47:14 +00:00
Jack Jansen
c13f19f1fc
Icons for the package manager.
2003-02-12 16:20:23 +00:00
Jack Jansen
3a146b6c7d
Photoshop source file for package manager icon.
2003-02-12 16:16:52 +00:00
Jack Jansen
d78003671a
Use bundlebuilder directly to build applets.
2003-02-12 15:42:49 +00:00
Jack Jansen
ffb8fef6d5
Allow this to run both standalone and as a window in the IDE.
2003-02-12 15:39:56 +00:00
Jack Jansen
a359a3d0ac
More int() around float arguments.
2003-02-12 15:39:16 +00:00
Jack Jansen
c0452da1b8
Create applets slightly differently: by saving the sourcecode to a
...
temporary location. This is needed to makethings work with the new
buildtools based on bundlebuilder.
2003-02-12 15:38:37 +00:00
Jack Jansen
113af98c89
Renamed InstallManager to PackageManager, finished a first stab at the
...
implementation and integrated it into the IDE.
2003-02-12 12:47:56 +00:00
Jack Jansen
9c679f8128
In a MultiList select all cells in the row, not only the first one.
2003-02-12 12:47:00 +00:00
Jack Jansen
73019a6321
An install manager window for the IDE and standalone use. Unfinished.
2003-02-11 23:15:33 +00:00
Jack Jansen
726b238860
- More int() calls around floating point numbers passed where integers are
...
expected.
- Fixed resizing of multi-column lists, somewhat.
2003-02-11 16:26:26 +00:00
Jack Jansen
658375b833
Got rid of macfs.
2003-02-06 23:13:11 +00:00
Jack Jansen
5a79329547
Got rid of FSSpecs.
2003-02-06 22:57:44 +00:00
Jack Jansen
e7ee17c58e
Got rid of macfs and FSSpecs in general (pathnames or FSRefs are now
...
used everywhere).
2003-02-06 22:32:35 +00:00
Jack Jansen
f3f4af5521
Got rid of macfs and made a bit more OSX-friendly.
2003-02-05 23:10:46 +00:00
Just van Rossum
19e02fc67f
removing old junk
2003-02-05 22:59:07 +00:00
Jack Jansen
ab564eea05
Removed unused import of macfs.
2003-02-05 22:53:29 +00:00
Jack Jansen
6d8bca8cb6
I don't think this script serves a useful purpose anymore, and I can't
...
be bothered to fix it.
2003-02-05 22:52:16 +00:00
Jack Jansen
611b9f6697
Added "Open File by Name" command which presens a filename dialog. If
...
the clipboard contains a filename that filename is used as the default.
2003-02-05 15:41:09 +00:00
Jack Jansen
d424836f3a
Cast various floats to ints so we don't get warnings.
2003-02-05 15:40:05 +00:00
Jack Jansen
8d4f06a73a
Added itertools module.
2003-02-05 13:36:50 +00:00
Jack Jansen
b9fa1a9ec5
Changed an edit instruction because of a changed parameter name (sigh).
2003-02-04 15:35:07 +00:00
Jack Jansen
52377e05be
The FSAliasFile routines also have an in/out parameter.
2003-02-02 23:00:21 +00:00
Just van Rossum
3bd8d0fb9c
patch #678211 from Robin Dunn
2003-02-01 10:07:28 +00:00
Jack Jansen
60ffc2bafc
Added a missing INCREF in pathname().
2003-01-28 23:29:46 +00:00
Jack Jansen
50abec8fc4
Install "python$(VERSION)" into /usr/local as the symlink to the framework,
...
and also create a symlink "python" pointing to "python$(VERSION)".
Fixes #675745 .
2003-01-28 21:45:44 +00:00
Jack Jansen
fd0b00e0a7
Use new file dialogs.
2003-01-26 22:15:48 +00:00
Jack Jansen
2373ff4e4f
Fix an omission in the previous checkin.
2003-01-26 22:15:10 +00:00
Jack Jansen
b340acf9fd
Use new file dialogs.
2003-01-26 21:40:00 +00:00
Jack Jansen
df976caa34
Use new file dialogs.
2003-01-26 20:35:47 +00:00
Jack Jansen
2b3ce3ba3f
FSRef and EasyDialogs pathname support was pretty much broken in MacPython-OS9. Fixed.
2003-01-26 20:22:41 +00:00
Jack Jansen
d44a3ec63c
Getting rid of StandardGetFile
2003-01-22 14:03:12 +00:00
Just van Rossum
7a503a4ee6
Fix bug #670845 : cut & clear in the output window now work, in that
...
- clear clears the entire buffer
- cut doesn't cut, but copies.
2003-01-20 09:02:23 +00:00
Jack Jansen
9c564755b8
Added a convenience routine pathname() which accepts either a string, unicode,
...
FSSpec or FSRef object and returns an 8-bit pathname (utf8 encoded).
2003-01-19 22:59:52 +00:00
Jack Jansen
e58962af4d
Fixed the first two bugs in the new file dialogs (found by Just):
...
- AskFileForSave didn't work for string return values
- filterProc didn't work.
2003-01-17 23:13:03 +00:00
Jack Jansen
b2a57722a8
It turns out that some calls return AEDesc records that are "borrowed",
...
the AEDesc data shouldn't be disposed when the Python object is.
Added a C call AEDesc_NewBorrowed() to create these objects and a Python
method old=AEDesc.AutoDispose(onoff) to change auto-dispose state.
2003-01-17 23:11:17 +00:00
Jack Jansen
c99b675ff4
For reasons unknown previewProc and filterProc were disabled. Enabled them.
2003-01-17 16:14:31 +00:00
Jack Jansen
2d0909b9cb
Implemented FSCatalogInfo structure support, and used this to implement
...
FSSpec.SetDates() and GetDates(). Closes #662836 .
2003-01-15 22:36:16 +00:00
Jack Jansen
bc65521567
Implemented FSCatalogInfo.
2003-01-12 23:01:46 +00:00
Jack Jansen
b2fcd086c7
Started on implementing support for FSCatalogInfo. Doesn't work yet, don't
...
try it.
2003-01-09 23:37:37 +00:00
Just van Rossum
c1a9cab8f0
interpret utf-8 file names on OSX
2003-01-09 23:20:31 +00:00
Just van Rossum
addc11edf0
removed silly & mask, avoiding FutureWarning
2003-01-09 22:54:37 +00:00
Jack Jansen
3e82872eca
Merging the various tweaks for MacPython-OS9 2.3a1 back into the trunk.
2003-01-08 16:27:44 +00:00
Just van Rossum
85e4c6757f
correct comment (and add newline at end)
2003-01-04 16:26:26 +00:00
Jack Jansen
5681acbf94
Added zipimport and _random module.
2002-12-30 23:11:30 +00:00
Jack Jansen
fb08b4c704
Changed sys.path initializer because of addition of Lib/plat-mac and a few minor
...
things.
2002-12-30 23:07:44 +00:00
Jack Jansen
83f898c86c
Adapted for the move of Mac/Lib to Lib/plat-mac. Makefile.pre.in now
...
knows about plat-mac subdirectories, and configure adds a variable
EXTRAPLATDIR. These together take care of copying Lib/plat-mac to
the destination on darwin.
Adding plat-mac is still done with a .pth file which is only created when
you do a framework build. I'm not 100% happy with this, but fixing it
really needs a functional pythonw in non-framework builds, and I don't
think I can do that before 2.3a1 (but I'll try:-).
2002-12-30 22:23:40 +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
f044e090c4
Changed the input field for the interpreter to use (in the preferences
...
window) to a combobox listing the known interpreters.
2002-12-26 22:10:53 +00:00
Jack Jansen
9431e48d23
macfsn is gone.
2002-12-26 21:17:42 +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
248f6f1f73
Second-argument alias methods were generated with a variation on
...
MethodGenerator, this should be OSErrMethodGenerator.
2002-12-26 20:45:43 +00:00
Jack Jansen
00df3e052b
If you entered a pathname for a nonexisting file to a FSSpec constructor
...
on OSX then the actual error (file not found) was obscured by the
error message that tried to be helpful about the allowed arguments. Fixed.
2002-12-25 22:45:28 +00:00
Jack Jansen
cfe28362fb
Changed folder name for apps from Python to MacPython-$(VERSION) (for a
...
normal 2.3 framework install) and MacPython-OSX-$(VERSION) (for the
experimental Jaguar addon install).
2002-12-25 22:31:28 +00:00
Jack Jansen
073ac9fd0e
Added File and Folder, removed macfs.
2002-12-24 13:11:19 +00:00
Jack Jansen
e77f58a2be
Fixed typo.
2002-12-24 13:09:28 +00:00
Jack Jansen
e072b876e0
Removed macfs, added File and Folder.
2002-12-24 13:08:52 +00:00
Jack Jansen
487197dd53
Updated for demise of macfs.
2002-12-24 13:07:58 +00:00
Jack Jansen
b734869f46
- Various tweaks to shut up compiler warnings.
...
- Regenerated with the correct calls to PyType_Ready and the correct
deallocator calls.
2002-12-23 23:16:25 +00:00
Jack Jansen
234d074446
- Various tweaks to forestall compiler warnings.
2002-12-23 22:35:38 +00:00
Jack Jansen
ae3cb6cf29
Got rid of Mac/Relnotes, and started on mac-specific release notes in NEWS.
2002-12-23 11:25:49 +00:00
Jack Jansen
6810f92d4d
The extension module macfs has been replaced by a pure Python version.
2002-12-19 23:27:58 +00:00
Jack Jansen
e87663306a
Added the last missing bits of functionality, and fixed a nasty bug where we
...
could overwrite memory.
2002-12-19 23:26:58 +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
f955784f0c
Regenerated with inheritance-aware xxxx_Check() macros.
2002-12-19 21:24:35 +00:00
Jack Jansen
543c9253cd
- Added rawdata initializers
...
- Added support for optional FSSpecs and FSRefs to the Alias routines.
NewAlias and friends are still functions, though, not methods.
2002-12-18 23:17:26 +00:00
Jack Jansen
1795f29b4b
Fixed silly typo.
...
Added comment (to myself) on what still needs to be done.
2002-12-17 23:29:27 +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
ae63756bf8
Include Finder.h too in the list of header files to parse: the finder
...
constants have tradiationally been in MACFS.py.
2002-12-17 22:22:57 +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
e55beefed8
- Added as_pathname and as_tuple methods
...
- Added access to the "data" attribute
- Fixed the FSRef tp_init routine to accept pathnames on OSX
- Changed the FSSpec tp_repr to return something resembling what
macfs returns.
2002-12-17 22:10:46 +00:00
Jack Jansen
e3a1c8f875
Combined alias and file into a single module. This is the only reasonable
...
way to get various alias creation routines as methods of FSSpec or FSRef
objects (which is the logical thing, from a Python POV). Also started on
the code that will contain all the macfs functionality, so macfs can
becode a Python module, to be used mainly for backward compatibility.
2002-12-15 19:55:07 +00:00
Jack Jansen
3c05c1f01e
Got rid of outdated defines.
2002-12-14 00:05:00 +00:00
Jack Jansen
9c17b11a67
Removed errors.rsrc: this is loaded dynamically from :Mac:Lib when needed.
2002-12-14 00:02:34 +00:00
Jack Jansen
9e7da62eab
Removed: this is loaded dynamically from :Mac:Lib when needed.
2002-12-14 00:01:47 +00:00
Jack Jansen
1562537cd7
Got rid of EasyDialogs dialogs, which are now in :Mac:Lib:dialogs.rsrc.
2002-12-13 23:53:10 +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
9ea729c624
Got rid of non-carbon stuff, and added new Alias, File and Folder modules.
2002-12-13 23:34:03 +00:00
Jack Jansen
805f1deb67
Tweaked button sizes and hid unused items.
2002-12-13 23:33:28 +00:00
Jack Jansen
19ac481a2c
Sigh: the Jaguar workaround for the prefs file broke saving it on OS9. Temporary workaround is to ignore the exception (it's only about file creator/type anyway).
2002-12-13 23:32:51 +00:00
Jack Jansen
9937a04994
Tweaked some button sizes to make them look better on OSX.
2002-12-13 23:31:55 +00:00
Jack Jansen
6d802a0ce3
Tweaks to make this module OS9-compatible.
2002-12-13 23:16:00 +00:00
Jack Jansen
b2ef47b84e
More pre-carbon stuff bites the dust.
2002-12-13 22:55:09 +00:00
Jack Jansen
b132a39399
Removed: not carbon-compatible.
2002-12-13 22:49:24 +00:00
Jack Jansen
3d87e3cdf7
The speech manager interface is no longer supported and a replacement is
...
(unfortunately: especially the grail demo was hiarious) still missing.
2002-12-13 15:25:26 +00:00
Jack Jansen
fcbe5e55f5
Outdated.
2002-12-13 15:18:04 +00:00
Jack Jansen
32f614b895
Got rid of unused Compat files.
2002-12-13 15:16:59 +00:00
Just van Rossum
feddf77ad2
another wrong assumption fixed
2002-12-13 15:14:22 +00:00
Jack Jansen
68c8138e89
Still used the old config file. Fixed.
2002-12-13 15:14:00 +00:00
Jack Jansen
04543deb6c
Compatibility files that haven't been used in a long time.
2002-12-13 15:05:00 +00:00
Jack Jansen
65cbf93fce
Get rid of support for Universal Headers older than 3.4 and various other
...
outdated things.
2002-12-13 15:02:02 +00:00
Jack Jansen
55309a31df
Get rid of 2.2 "poor mans universal newlines" now that the real thing
...
is implemented.
2002-12-13 13:57:35 +00:00
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