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
Jack Jansen
0e0a479821
Added an icon for .pyw files.
2002-08-02 22:32:41 +00:00
Jack Jansen
2f8816fda6
An icon for .pyw files. Yes, it's lousy, I know....
2002-08-02 22:18:05 +00:00
Jack Jansen
940dc922c0
Build the IDE last, as it may fail because of waste missing.
2002-08-02 21:46:40 +00:00
Jack Jansen
0fdaee7419
Added a lot more information on framework builds, the various .app's,
...
etc. Still not enough, probably, but better than what we had.
2002-08-02 21:45:27 +00:00
Jack Jansen
337f85d34f
Updated for the new path to Python.app.
2002-08-02 21:05:16 +00:00
Jack Jansen
f80798b1ca
When building the IDE check that waste is available, to forestall
...
surprises later (the IDE won't work without waste).
2002-08-02 21:04:46 +00:00
Jack Jansen
940e970f6e
Also create BuildApplet. It's useful enough as a standalone application.
2002-08-02 15:32:12 +00:00
Jack Jansen
3e6c80bf5e
Hmm, in some cases we don't seem to get our scriptname in argv[0].
...
Cater for that by working from sys.executable.
2002-08-02 15:31:25 +00:00
Jack Jansen
ba1c13db4f
Final step in making applets first-class citizens: if the applet wants
...
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.
2002-08-02 14:57:43 +00:00
Jack Jansen
a9454e21a7
Oops, the -psn stuff is in argv[1], of course.
2002-08-02 14:54:46 +00:00
Jack Jansen
21ed16acbe
Added one call to Py_Main(), for OSX framework builds only, that will get the
...
actual script to run in case we are running from an applet. If we are indeed
running an applet we skip the normal option processing leaving it all to the
applet code.
This allows us to get use the normal python binary in the Python.app bundle,
giving us all the normal command line options through PythonLauncher while
still allowing Python.app to be used as the template for building applets.
Consequently, pythonforbundle is gone, and Mac/Python/macmain.c isn't used
on OSX anymore.
2002-08-02 14:11:24 +00:00
Jack Jansen
94416e55d3
Got rid of a couple of OS9-isms.
2002-08-02 14:04:42 +00:00
Jack Jansen
2eb4b18f94
- Slightly better error message in case of syntax errors in the script.
...
- The applet .rsrc file should be called python.rsrc, it is not based on the
applet name.
2002-08-02 14:04:15 +00:00
Jack Jansen
6e1986ba9c
- Remove -psn-xxxx argument added by the Finder.
...
- "Open Document" appleevent is "odoc", not "open".
2002-08-02 12:56:21 +00:00
Jack Jansen
f4f6d4859d
Construct a sys.argv from the initial AppleEvent sent by the finder
...
during startup of a program. This module will replace the C code in
macgetargv.c so we can get rid of the special macmain.c for OSX
Python.app.
2002-08-02 11:12:15 +00:00
Jack Jansen
d05e18139f
Slightly better error message in case of missing resources.
2002-08-02 11:03:19 +00:00
Jack Jansen
be3e1f7a95
Python.app is now a hidden application, deep in the framework. It will
...
be invoked by PythonLauncher when needed.
Also changed the names of various variables in the Makefile to match
what the main Makefile has.
2002-08-01 21:14:06 +00:00
Jack Jansen
2fc993d16f
Python.app no longer advertises that it can handle .py and .pyc files,
...
PythonLauncher.app has taken that responsibility over.
2002-08-01 21:12:36 +00:00
Jack Jansen
0a3d6060d5
Only show the UI for selecting options if the ALT key was depressed while
...
dragging or double-clicking the script.
2002-08-01 15:07:00 +00:00
Jack Jansen
cce7e34aeb
- Install into /Applications/Python in stead of into /Applications.
...
- Build PythonLauncher.app and PythonIDE.app as well as Python.app.
2002-07-31 14:46:04 +00:00
Jack Jansen
40e2e51a7e
Install into /Applications/Python in stead of into /Applications.
2002-07-31 14:45:08 +00:00
Jack Jansen
b7276cdf71
Implemented starting Python in a terminal window. The implementation isn't
...
optimal, especially if Terminal wasn't running yet, but it works.
2002-07-31 13:15:59 +00:00
Jack Jansen
3bbb617ca4
First stab at the launcher application. This will be run when the user
...
doubleclicks a .py, .pyw or .pyc file. It runs the file by invoking the
relevant interpreter (either the command line Python in a terminal window
or a Python.app for GUI-based scripts). Interpreter to use and the options
to pass are settable through preferences.
If PythonLauncher wasn't running it does its thing for one script and exits.
If it was manually started before a dialog is presented where the user
can set the options to use, etc.
To be done:
- option-drag/doubleclick should always open the interactive dialog
- Terminal-window isn't done yet
- Should be reimplemented in Python, but pyobjc isn't part of the core.
- Various menu entries should be disabled.
2002-07-29 21:36:35 +00:00
Jack Jansen
c7554e28ee
Added a __contains__ method.
2002-07-26 11:32:03 +00:00
Jack Jansen
603e76e882
Fixed potential refcount problems with interned strings, adapted comments, added a bit more trace output if verbose > 1.
2002-07-22 12:35:22 +00:00
Jack Jansen
66e794d743
Finally found out why te cf project sometimes worked and someimes didn't. Fixed it.
2002-07-22 12:32:31 +00:00
Jeremy Hylton
938ace69a0
staticforward bites the dust.
...
The staticforward define was needed to support certain broken C
compilers (notably SCO ODT 3.0, perhaps early AIX as well) botched the
static keyword when it was used with a forward declaration of a static
initialized structure. Standard C allows the forward declaration with
static, and we've decided to stop catering to broken C compilers. (In
fact, we expect that the compilers are all fixed eight years later.)
I'm leaving staticforward and statichere defined in object.h as
static. This is only for backwards compatibility with C extensions
that might still use it.
XXX I haven't updated the documentation.
2002-07-17 16:30:39 +00:00
Just van Rossum
979c53757b
fixed wrong classic MacOS pathname assumption
2002-07-12 16:50:32 +00:00
Just van Rossum
2ad9419c8f
minor fixes, removed obsolete warning
2002-07-12 12:06:17 +00:00
Jack Jansen
c361f94e1c
Got rid of symlink target, and in stead have "make dontinstallmacsubtree"
...
which uses a .pth file to add the Mac/Lib from your source tree to sys.path.
Also put the Python version number in a variable.Killed by signal 2.
2002-07-08 13:34:23 +00:00
Jack Jansen
77d0717fb3
Define WITH_PYMALLOC as 1
2002-07-08 10:05:23 +00:00
Jack Jansen
059ed83cc3
- Got rid if WITH_CYCLE_GC
...
- Cleaned up Python banner string, so the normal build for MacPython 2.3
will have a short banner.
2002-07-07 20:54:44 +00:00
Jack Jansen
1892cf0312
Started on support for using standard setup.py to build at least
...
the "standard" modules. Unfinished, but shouldn't harm anything.
2002-06-27 22:09:19 +00:00
Jack Jansen
c70815ac0f
Disabled non-carbon builds (for the moment still optional) and made
...
these scripts work with the new precompiled headers.
2002-06-26 22:06:08 +00:00
Jack Jansen
e0c62b4db0
Make the prototype match the declaration in the GUSI header files.
2002-06-26 20:43:24 +00:00
Jack Jansen
027f6722c4
Changed some prototypes to match the exact definition in some faraway Apple
...
header files. If we're building with precompiled headers these are in scope.
2002-06-26 20:37:40 +00:00
Jack Jansen
440a36f3ab
In plugin projects use (by default) the new mwerks_shcarbon_pch
...
header file in stead of mwerks_carbonplugin_config.h.
2002-06-26 20:36:12 +00:00
Jack Jansen
bc5e145341
Close the project after generating it, so we don't keep a gazillion project
...
files open when we're rebuilding them all.
2002-06-26 20:35:18 +00:00
Jack Jansen
7504dfedb4
- Got rid of non-carbon builds
...
- Use precompiled headers
- Rationalize config file names.
2002-06-26 20:17:02 +00:00
Jack Jansen
09c7343273
Turns out GetArgv() options can be 4-tuples too, with the last value being the default (or something like that). Cater for this.
...
Also put in a safeguard against very long help strings.
2002-06-26 15:14:48 +00:00
Jack Jansen
bdac001cf0
- Got rid of non-carbon stuff
...
- Use precompiled headers
- Rationalized naming scheme
2002-06-23 22:09:45 +00:00
Jack Jansen
0b06be7b0b
Patch #557719 by Tony Lownds, slightly massaged by me: streamline the
...
OSX framework build process. Things fixed/modified:
- the filesystem case-sensitivity test now works for builds outside
the source directory
- various other fixes for building outside the source directory
- python.app now has a target in the main Makefile
- WASTE and AquaTk are found more automatically
2002-06-21 14:48:38 +00:00
Jack Jansen
fc7d379a96
- Got rid of newmodule.c
...
- These are the final projects that support classic.
2002-06-20 22:56:22 +00:00
Jack Jansen
5d0990494e
Open the source file in universal newline mode.
2002-06-20 20:42:07 +00:00
Guido van Rossum
bea18ccde6
SF patch 568629 by Oren Tirosh: types made callable.
...
These built-in functions are replaced by their (now callable) type:
slice()
buffer()
and these types can also be called (but have no built-in named
function named after them)
classobj (type name used to be "class")
code
function
instance
instancemethod (type name used to be "instance method")
The module "new" has been replaced with a small backward compatibility
placeholder in Python.
A large portion of the patch simply removes the new module from
various platform-specific build recipes. The following binary Mac
project files still have references to it:
Mac/Build/PythonCore.mcp
Mac/Build/PythonStandSmall.mcp
Mac/Build/PythonStandalone.mcp
[I've tweaked the code layout and the doc strings here and there, and
added a comment to types.py about StringTypes vs. basestring. --Guido]
2002-06-14 20:41:17 +00:00
Martin v. Löwis
606edc1d97
Patch #568235 : Add posix.setpgid.
2002-06-13 21:09:11 +00:00
Jack Jansen
388fbf3d4a
- Better commandline interface to BuildApplet, complete with options,
...
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.
2002-06-09 22:08:52 +00:00
Martin v. Löwis
2befa48926
Patch #505375 : Make doc strings optional.
2002-06-09 13:41:37 +00:00
Just van Rossum
84fca948c8
fixed refcount leak in CreateNewWindow() and CreateWindowFromResource().
2002-06-05 17:41:03 +00:00
Jack Jansen
b66e1a3dd2
Allow the shared library initialization routine to be overridden with an initialize=xxx argument.
...
Should fix #492465 .
2002-05-23 22:34:18 +00:00
Jack Jansen
dc74568782
Added missing dirs to LIBSUBDIRS, and reformatted it so it's easier to read
...
and maintain. Fixes #557482 .
2002-05-23 22:18:13 +00:00
Jack Jansen
a43b2c4e30
Regenerated from new Universal Headers.
2002-05-22 15:08:58 +00:00
Jack Jansen
a7f4ded436
Allow the script to have not only a TEXT filetype but also a null filetype (to enable files to be created from the Unix side of OSX to be droppable on the MacPython interpreter).
2002-05-22 15:02:08 +00:00
Jack Jansen
0e2f798301
Replaced lots of PyMem_DEL() calls with PyObject_DEL().
2002-05-22 14:31:48 +00:00
Jack Jansen
422cdde69a
Enable WITH_PYMALLOC.
2002-05-22 14:31:10 +00:00
Jack Jansen
94ce52e8e8
Added 2 more addresses to send release notifications to.
2002-05-22 14:30:37 +00:00
Jack Jansen
eaba9d7b28
Added typechecking to the individual python->CF converters, so we can use them in the CF object initializers safely.
2002-05-13 21:23:10 +00:00
Jack Jansen
23be1ceb51
Added CFPreferences support. Added these as functions, not methods, which seemed counter-intuitive.
2002-05-13 21:21:49 +00:00
Jack Jansen
7906634f28
- Better exception when a NULL CF object is encountered.
...
- Manually generate a routine with funny error semantics.
2002-05-12 22:04:14 +00:00
Jack Jansen
6d207c09aa
- Get data from CFData objects as Python strings and vv.
...
- Started on supporting CFPropertyLists.
2002-05-10 22:51:58 +00:00
Jack Jansen
42251323b4
Fixed string and dict conversion, and implemented booleans and numbers (int and float). I think we now have enough CFType support to start on plists and CFpreferences!
...
Transparent handling of unknown CFType objects still TBD.
2002-05-08 22:13:51 +00:00
Jack Jansen
1df628ddce
Partial fix for string handling. Null byte TBD.
2002-05-08 15:29:33 +00:00
Jack Jansen
5ad6f7a3a9
More support for bridging between Python and CoreFoundation objects. Still untested.
2002-05-07 23:00:03 +00:00
Jack Jansen
cb376460b7
Added pycfbridge.c
2002-05-07 22:59:06 +00:00
Jack Jansen
0627c3e371
Added enumobject.c
2002-05-07 21:42:08 +00:00
Jack Jansen
ead4c80ac2
Fixed a mistake on my part when regenerating: removed a bogus import of Applscript_Suite.
...
Bugfix candidate (I'll move it over myself).
2002-05-07 20:16:20 +00:00
Jack Jansen
efaffae8f6
First steps towards a generalized converter of Python object
...
hierarchies to CoreFoundation object hierarchies and vice versa.
2002-05-05 21:48:12 +00:00
Jack Jansen
65300f17c3
Regenerated.
...
Bugfix candidate.
2002-04-24 09:13:24 +00:00
Jack Jansen
033b79c483
Regenerated.
2002-04-23 22:46:01 +00:00
Jack Jansen
95df3fd159
Second part of fix for #493826 : regenerated suite modules so errn exists but == 0 doesn't signal an error.
...
Bugfix candidate.
2002-04-23 21:08:54 +00:00
Jack Jansen
18983536dc
First part of fix for #493826 : if 'errn' key exists in return value this doesn't necesarily signal an error, only if the value is non-zero it does. This
...
does not correspond with my reading of the documentation, but the OSX Finder can return 'errn'=0, and it knows better than me:-)
Bugfix candidate.
2002-04-23 21:03:21 +00:00
Jack Jansen
656b735af9
Backport of 1.6.4.2.2.3 from release22-maint branch.
2002-04-23 19:59:03 +00:00
Jack Jansen
d92b7a01c5
Updated URL.
2002-04-23 19:56:20 +00:00
Jack Jansen
601b2fddf2
Backport of select parts of release22-maint (up to 1.38.4.2.2.3).
2002-04-23 19:50:53 +00:00
Jack Jansen
ca80002694
Added Christopher Smith.
2002-04-22 13:56:25 +00:00
Jack Jansen
c6d2a20bc6
Removed note on test_time failing.
...
Bugfix candidate.
2002-04-22 11:46:16 +00:00
Jack Jansen
7aace7a2dc
Regenerated to include Internet Config error strings.
...
Bugfix candidate.
2002-04-22 11:45:46 +00:00
Jack Jansen
117dbdf4b4
Added an optional file with MacErrors.h extensions: IC errors aren't in there.
...
Bugfix candidate.
2002-04-22 11:44:26 +00:00
Jack Jansen
a258324a3d
Enable universal newline support for MacPython.
2002-04-14 22:13:35 +00:00
Jack Jansen
7b8c7546eb
Mass checkin of universal newline support.
...
Highlights: import and friends will understand any of \r, \n and \r\n
as end of line. Python file input will do the same if you use mode 'U'.
Everything can be disabled by configuring with --without-universal-newlines.
See PEP278 for details.
2002-04-14 20:12:41 +00:00
Jack Jansen
68c7e26dc9
Get rid of backward compatibility modules. Do this fairly early in the 2.3 cycle so we don't shoot ourselves in the foot later.
2002-04-11 21:03:37 +00:00
Jack Jansen
85705e73b1
Got rid of obsolete defines.
2002-04-11 20:56:15 +00:00
Jack Jansen
786681ac60
Got rid of obsolete appearance flag.
2002-04-11 20:56:13 +00:00
Jack Jansen
cc8258d827
Added boolobject.c
2002-04-11 20:54:58 +00:00
Jack Jansen
5159f1da7d
Got rid of ifdefs for long-obsolete GUSI versions and other lurkers.
2002-04-11 20:53:03 +00:00
Jack Jansen
32baa2c8d2
These are long obsolete. Get rid of them.
2002-04-11 20:50:39 +00:00
Jack Jansen
b19444feca
Got rid of ifdefs for long-obsolete GUSI versions and other stuff that is now standard (appearance, interned strings)
2002-04-11 20:48:25 +00:00
Jack Jansen
8ab04b4d65
Got rid of ifdefs for long-obsolete GUSI versions.
2002-04-11 20:46:23 +00:00
Jack Jansen
e9c0358bf4
e macresource.need() to open the W resource file in the application init
...
code (if it isn't open already).
PythonIDE still opens the resource file "manually" because it also uses
presence of the CURS resource to determine whether it needs to adjust
sys.path.
2002-04-03 21:52:10 +00:00
Jack Jansen
8f3078b3f0
Got the example program to work in MachoPython.
2002-04-03 21:28:02 +00:00
Jack Jansen
ff773eba36
Added a "run with commandline Python" flag. Works in MachoPython, should work
...
in OSX MacPython (untested), and should be disabled/removed in OS9 (but
that doesn't happen yet).
2002-03-31 22:01:33 +00:00
Jack Jansen
e7f776af3d
Suite to talk to the OSX Terminal application.
2002-03-30 23:46:16 +00:00
Jack Jansen
ad5dcafac4
Got rid of obsolete way to get at various toolbox types.
2002-03-30 23:44:58 +00:00
Jack Jansen
77afbc0b3b
Add Mac/Lib/lib-scriptpackages to sys.path too.
2002-03-30 23:43:36 +00:00
Jack Jansen
4092606d6b
Modified to allow it to run in MachoPython in a reasonable way. It still
...
needs a decent commandline interface, though.
2002-03-30 23:43:04 +00:00
Jack Jansen
61ef790907
Auxiliary files used by BuildApplet for MachoPython.
2002-03-29 23:48:55 +00:00
Jack Jansen
8134976fee
Auxiliary files for building the IDE applet. Running the IDE through
...
BuildApplet for MachoPython now seems to do the right thing, yeah!
2002-03-29 23:46:34 +00:00
Jack Jansen
9aa8fd0b7d
Handle .icns and .plist files for applets.
...
Also, for now (until we learn to parse .plist files) we make a special case
for the IDE, setting the creator to "Pide".
2002-03-29 23:44:37 +00:00
Jack Jansen
96f9e0864a
Missed one version number.
2002-03-29 23:43:21 +00:00
Jack Jansen
bdcb1c4597
First stab at an icon for the IDE.
2002-03-29 22:28:32 +00:00
Just van Rossum
ca3d307271
repair damage: canceling the "save options" dialog now works again.
2002-03-29 21:48:42 +00:00
Just van Rossum
8bb61c8d4c
repair damage: now works again as a CFM app.
2002-03-29 21:47:56 +00:00
Jack Jansen
9a38947fba
Completely revamped newline handling. PyEdit is now newline-preserving
...
(if a single newline convention is used in the sourcefile), and the
"save options" has a newline style radio button.
The creator radio button also has the new choices PythonW and None.
Just: just shout (and revert) if you don't agree.
2002-03-29 21:26:04 +00:00
Jack Jansen
e0ba087d44
Allow file without filetype as long as they end in ".py".
...
Added a -D flag (can really only be specified on OSX commandline) to not
revector sys.stderr, for debugging the IDE itself. Not sure whether
this should stay.
2002-03-29 21:23:47 +00:00
Jack Jansen
b2e33fe285
Implemented buildtools for MachoPython .app bundles. The API is compatible
...
enough that IDE and BuildApplet can create applets, yeah!
2002-03-29 21:21:28 +00:00
Jack Jansen
32f782c03c
Don't attempt to create a dummy fsspec if the user cancelled out, just
...
return None.
For now, if the user asks for TEXT files files without type are also
accepted. But it is time to phase out StandardGetFile and friends, really.
2002-03-29 21:19:37 +00:00
Jack Jansen
d21c9f48fa
Re-raise the Res.Error if the file doesn't exist.
2002-03-29 21:17:57 +00:00
Jack Jansen
2cce33f3bd
Added -Wno-long-double
2002-03-29 21:17:14 +00:00
Jack Jansen
c5fa303e78
Changed visible name (in dock, menubar) of the interpreter to PythonW.
...
Changed version numbers and copyright.
2002-03-29 21:16:41 +00:00
Jack Jansen
3cef721b61
Allow .pyc files as applets as well as .py files. .py files have
...
priority, for safety reasons.
2002-03-29 14:43:50 +00:00
Jack Jansen
5053b70da0
If the file has no resource fork first check to see whether it's a
...
datafork-based resource file before trying to decode it as AppleSingle.
2002-03-29 14:29:35 +00:00
Jack Jansen
695b33b02a
Removed debug.
2002-03-29 14:28:09 +00:00
Jack Jansen
0035fb27f4
In MachoPython print "Pythonw" in banner to distinguish from command-line
...
python.
Removed debug output.
2002-03-29 14:27:06 +00:00
Jack Jansen
0cd0e656ef
Added target "installunixprograms" which installs python and pythonw in
...
/usr/local/bin (referring to the framework-based interpreter and Python.app).
Added target symlinkmacsubtree to aid in debugging.
2002-03-29 14:18:18 +00:00
Jack Jansen
ab10ce6c6b
Shell script that invokes Python.app from the command line. Called pythonw
...
because of similarity to the same program on Windows.
2002-03-29 14:15:22 +00:00
Just van Rossum
4e6d13cebf
Make object browser work in OSX (by rewriting the old browser
...
LDEF in Python). If at all possible, this should go into 2.2.1.
2002-03-26 12:06:11 +00:00
Jack Jansen
a516a59caa
Include obmalloc.c in the build.
2002-03-25 15:43:37 +00:00
Jack Jansen
714d7268d5
Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.
...
Should finally fix 531398. 2.2.1 candidate.
2002-03-25 00:32:17 +00:00
Jack Jansen
9d79990ac7
Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.
...
Should finally fix 531398. 2.2.1 candidate.
Also blacklisted some constants with definitions that were not Python-compatible.
2002-03-24 23:04:18 +00:00
Jack Jansen
5ee24ae98d
Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.
...
Should finally fix 531398. 2.2.1 candidate.
2002-03-24 22:59:16 +00:00
Jack Jansen
150ed6113c
Generate with weaklink stubs, so missing routines (on MacOS 8.6 and earlier)
...
don't cause import failure.
Fixes 531398, 2.2.1 candidate.
2002-03-22 14:16:39 +00:00
Jack Jansen
9051e0e577
- Weaklink InterfaceLib in _Res module
...
- forgot to pass libraryflags and stdlibraryflags on to ppc/carbon
project generation.
First half of fix to 531398.
2002-03-22 14:15:07 +00:00
Jack Jansen
562baabb61
Added an open_pathname() method which opens a resource file by pathname,
...
possibly converting from AppleSingle.
2002-03-21 22:38:32 +00:00
Jack Jansen
b9e6661206
For reasons I don't fully understand we sometimes get unexpected events
...
in MachoPython. As we don't have MacOS.HandleEvent() we drop these on
the floor (with a print).
2002-03-21 22:36:57 +00:00
Jack Jansen
0e5a733887
Solve sync() signature conflict differently: manually return 0 if
...
we have GUSI's void sync().
2002-03-21 21:09:36 +00:00
Jack Jansen
99286f96ac
New checkin to convert from BinHex to AppleSingle encoding.
2002-03-21 20:18:32 +00:00
Jack Jansen
ca9a4a6e17
Lurking bug found by patch for 531291: FSSpecs should be passed to
...
Py_BuildValue by address, not by value.
2.2.1 candidate.
2002-03-18 15:41:32 +00:00
Jack Jansen
cb6cf13261
Some of the newer routines return an OSErr, like most toolbox calls, in stead of depending on ResError(). Second half of fix for #531291 .
...
2.2.1 candidate.
2002-03-18 15:31:08 +00:00
Jack Jansen
a1e5da91d5
Applet icon.
2002-03-16 00:34:03 +00:00
Jack Jansen
86c4d64751
Modifed for new included expat.
2002-03-14 23:14:43 +00:00
Jack Jansen
648c8920bd
Updated for new included expat and new waste.
2002-03-14 23:13:33 +00:00
Just van Rossum
a2168eceb0
mkalias() now also works for folders. Fixes bug #515830 .
2002-03-10 19:28:02 +00:00
Jack Jansen
3014ce94ba
CGStubLib wasn't weak-linked, fixed. 221 candidate.
2002-03-05 22:43:50 +00:00
Just van Rossum
dd989e1ce7
Added ClipCGContextToRegion() from Quickdraw.h.
2002-03-04 10:31:32 +00:00
Just van Rossum
38b504e9e3
Added support for SyncCGContextOriginWithPort().
2002-03-02 10:20:44 +00:00
Jack Jansen
5ae815af99
Some buffers needed to be unsigned char, not char.
2002-02-26 21:36:19 +00:00
Jack Jansen
6a60915843
Don't blacklist ModalFilterUPP but always pass it as NULL. This enables the record routines to be generated.
2002-02-05 22:35:36 +00:00
Jack Jansen
e62ceac7d4
Added SndRecord and (classic only) SndRecordToFile.
2002-02-05 22:34:35 +00:00
Jack Jansen
5bb8f78d97
Added support for unicode strings (utxt).
2002-02-05 21:24:47 +00:00
Just van Rossum
4014401c6c
Added minimal support for floating windows.
2002-02-04 12:52:44 +00:00
Just van Rossum
bf0a9084c5
Don't append quit menu when on OSX, it is special and automatic there.
2002-02-04 12:48:06 +00:00
Just van Rossum
4e7203855e
Flush screen buffer upon console.flush() and output.flush().
...
This fixes bug #511992 .
2002-02-04 11:53:53 +00:00
Jack Jansen
c7dd34b5e7
Added a note about compiler warnings.
2002-01-30 10:42:59 +00:00
Jack Jansen
fea155370e
Use full paths for Rez and DeRez, which may not be on $PATH. Fixes bug
...
#509074 .
2002-01-27 20:05:20 +00:00
Jack Jansen
402dd6e255
Added contributors.
2002-01-25 16:13:38 +00:00
Jack Jansen
9051ad1bf2
Some modifications and clarifications (by me) to Michael's mods.
2002-01-25 15:28:39 +00:00
Jack Jansen
c7a7d2d4e8
Rewritten, clarified, corrected and cleaned up by Michael J. Barber.
2002-01-25 15:06:19 +00:00
Jack Jansen
b2ecc2c6c8
Get rid of keyword list and use keyword.iskeyword() function (which I wasn't aware of previously).
2002-01-24 22:44:07 +00:00
Jack Jansen
bdd6e705ae
"yield" is also a keyword. Spotted by Neal Norwitz.
2002-01-24 12:36:51 +00:00
Jack Jansen
8b0ee24e22
(Much) better list of Python keywords, supplied by Michael J. Barber.
2002-01-23 22:49:48 +00:00
Jack Jansen
c8febecd3c
Rename the routine to start the target running _start(), with a compatibility
...
routine start() calling it.
Some suites declare an event start(), which obscures this method, which
causes the class initializer to fail when called with start=1.
Based on bug report and fix suggestion by Jacob Kaplan-Moss.
2002-01-23 22:46:30 +00:00
Jack Jansen
685d46fee1
Newer names for various error include files.
2002-01-22 23:25:12 +00:00
Jack Jansen
a618c3fcfe
Build _tkinter for Carbon too.
2002-01-22 23:24:41 +00:00
Jack Jansen
7ebcbf5cf9
Identify() enum values. This was changed in 1.14, but I don't think it is a good idea.
2002-01-22 23:24:03 +00:00
Jack Jansen
368875c2d3
Regenerated to take advantage of new _builtinSuites package.
2002-01-22 23:22:32 +00:00
Jack Jansen
d50c66b1e5
A "magic" suite that is the base suite for StdSuites. This solves a problem with the required events open/openapp/reopen/print/quit officially being part of Required but being defined (by Apple) in Standard.
...
Most of the code and ideas contributed by Michael j. Barber.
2002-01-22 23:20:12 +00:00
Jack Jansen
eafff4c248
Get rid of fsspec type initializer, it wasn't used anyway.
2002-01-21 23:02:03 +00:00
Jack Jansen
a4adacbd7e
Changes by Donovan Preston (and a few minor ones by me) to make IDE run under
...
MachoPython. Mainly making sure we don't call routines that don't exist.
2002-01-21 23:01:24 +00:00
Jack Jansen
815d2bf067
Changes by Donovan Preston (and a few minor ones by me) to make IDE run under
...
MachoPython. Mainly making sure we don't call routines that don't exist
and representing pathnames in a os.separator-neutral format.
These shouldn't interfere too much with Just's work on the next generation IDE,
I hope.
2002-01-21 23:00:52 +00:00
Jack Jansen
c71efe0116
Also install the Tools directory on "make installmacsubtree".
2002-01-21 22:51:55 +00:00
Jack Jansen
ba4fe77fba
Added as_pathname() method to FSRef objects.
2002-01-18 16:13:15 +00:00
Jack Jansen
109f0945e4
Added a note that you have to add Mac/Lib to sys.path after doing
...
a "make installmacsubtree".
2002-01-18 16:12:27 +00:00
Jack Jansen
fdc8d758ad
Include errors.rsrc in the Python.app resource file, so the error strings
...
are available in MacOS API exceptions.
2002-01-15 23:20:40 +00:00
Jack Jansen
32d1a3b1c9
Fixed to work under MachoPython, doing the expected unpacking for applesingle files. The IDE still doesn't work, though, because it uses :-style pathnames.
2002-01-13 23:18:00 +00:00
Jack Jansen
d48b10621e
In MachoPython expect Unix-style pathnames for both FSSpec and FSRef initializers. TBD: Do the reverse for MacPython, and also handle as_pathname().
2002-01-13 23:16:32 +00:00
Jack Jansen
51e77e1324
Regenerated from UH 3.4. Candidate for 2.2.1.
2002-01-13 22:59:49 +00:00
Jack Jansen
8aa498774d
Removed references to download of Waste.
2002-01-11 12:41:01 +00:00
Jack Jansen
4a667c724a
CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
2002-01-11 12:39:03 +00:00
Jack Jansen
8f54f2a3f3
Internet Config is now part of official Apple interfaces, so use the new
...
headers and libraries.
2002-01-11 12:38:08 +00:00
Jack Jansen
b99e521319
- Updated to Waste 2.0.
...
- Use waste included with CW in stead of separate package.
2002-01-11 12:37:15 +00:00
Jack Jansen
00638bd4f9
Don't call PyMac_OutputSeen if we have a custom console. Fix by Alexandre Parenteau.
2002-01-11 10:24:23 +00:00
Jack Jansen
f706b1c807
Updated for CW7 and Tcl/Tk 8.3.4.
2002-01-10 00:07:00 +00:00
Jack Jansen
6c6b079185
Added the modules I missed first time around. Still not good enough, though: bgerror does a "package require msgcat" and I don't see a way to put packages into resources. Off to the mactcl list for help...
2002-01-10 00:05:54 +00:00
Just van Rossum
4b367359b5
Fixed TrackMouseRegion() argument: ioWasInRgn is an in/out parameter.
2002-01-09 18:54:16 +00:00
Jack Jansen
e0b1e6af58
Updated for CW7 and Tcl/Tk 8.3.4. Also added a few other things
...
that were changed but not yet reflected in this document.
2002-01-08 23:03:45 +00:00
Jack Jansen
850bbcdf76
Upgraded _tkinter to Tcl/Tk 8.3.4.
2002-01-08 22:11:51 +00:00
Just van Rossum
ec0107f023
Today's Carbon Toolbox addition: CarbonEvt.TrackMouseLocation() and friends.
2002-01-08 11:49:31 +00:00
Just van Rossum
ca3b2ffbb9
Today's Carbon Toolbox addition: QDTextBounds()
2002-01-07 14:15:02 +00:00
Just van Rossum
6253a114a7
Added support for DrawThemeButton() and friends.
2002-01-06 23:03:39 +00:00
Just van Rossum
8a107fbfed
Whoops, it's late -- generated output now matches what's checked in...
2002-01-05 23:44:33 +00:00
Just van Rossum
eae95044ae
Q&D support for ThemeDrawingState objects.
2002-01-05 23:37:19 +00:00
Just van Rossum
c4cf27e8e0
- added support for UserPaneKeyDownProc and UserPaneFocusProc
...
- clear error after failing PyArg_Parse()
2002-01-04 19:45:15 +00:00
Jack Jansen
a22a7b7a06
UH 3.4 checkin that I had forgotten about.
2002-01-04 16:01:23 +00:00
Jack Jansen
3bac5ca11a
Some of the new routines are carbon-only.
2002-01-04 16:00:27 +00:00
Just van Rossum
7d1d396134
Callback error handling improvements:
...
- print traceback
- don't use fprintf()
- clear exception (implied by PyErr_Print())
2002-01-04 14:39:29 +00:00
Just van Rossum
3e584aaa2a
Ugh, by all means, _do_ report exceptions somehow ;-)
2002-01-04 13:49:36 +00:00
Just van Rossum
43c2de230d
fixed SetEventParameter() signature: removed unneccesary length arg.
2002-01-03 20:45:47 +00:00
Just van Rossum
8edfc542f0
The output MenuRef of GetMenuItemHierarchicalMenu() may be NULL.
2002-01-03 12:16:18 +00:00
Jack Jansen
4b517854d0
In MachoPython, don't simulate argc/argv unless we have argc=1 and argv[1]
...
starts with "-psn_". This means the drag-and-drop continues to work as
expected, but we can now also do
/Applications/Python.app/Contents/MacOS/python script.py
from the command line, which is a lot easier with debugging. Pressing <option>
at this point also has the expected effect of opening the options dialog!
2002-01-02 22:53:38 +00:00
Just van Rossum
4f6fe52424
- Added DrawThemeTextBox()
...
- fixed GetThemeTextDimensions(): it has an in/out Point arg, not just out.
2002-01-02 15:11:44 +00:00
Just van Rossum
1ca65c0738
rectified copy/paste oversight in comment
2002-01-02 14:59:03 +00:00
Just van Rossum
ca3cff30ec
- Added support for optional MenuObj arguments
...
- Added a bunch of calls as functions with an optional
MenuObj first argument. The same calls already
exist as methods, but then the first arg isn't
optional... The method versions could go as far as I'm
concerned. Jack?
2002-01-02 14:48:36 +00:00
Jack Jansen
69ac361cb5
Added some support for unicode arguments.
2002-01-01 22:43:13 +00:00
Jack Jansen
65293680aa
Use the Carbon scrap manager interface if the old interface isn't available.
2001-12-31 15:08:04 +00:00
Jack Jansen
9cf00dd551
Updated to optionally use Carbon Scrap manager.
2001-12-31 15:02:56 +00:00
Jack Jansen
ad8381a8f0
Use the Carbon scrap manager interface if the old interface isn't available.
2001-12-31 14:53:05 +00:00
Jack Jansen
420ed40344
Added support for the Carbon scrap manager (finally).
2001-12-31 14:52:03 +00:00
Just van Rossum
7633593683
Oops, forgot to mark CreateScrollBarControl and CreateSliderControl
...
as Carbon-only
2001-12-31 09:50:32 +00:00
Just van Rossum
20a03d1c9a
made radio button labels readable under OSX
2001-12-31 08:58:44 +00:00
Just van Rossum
bdb9d487b2
half-hearted stab at supported the 2.2 object model better.
2001-12-31 08:57:57 +00:00
Just van Rossum
31a4c22cee
added support for live feedback in scrollbars
2001-12-31 08:56:52 +00:00
Just van Rossum
cae6da632a
- added support for ControlActionProcs, exposing the following calls:
...
- ctl.SetControlAction()
- CreateScrollBarControl()
- CreateSliderControl()
- print traceback when callbacks fail
2001-12-30 21:25:26 +00:00
Jack Jansen
b9526515b7
Merging changes from release22-branch.
2001-12-27 23:01:18 +00:00
Just van Rossum
226275f780
Modified version of patch #496882 : echo SimpleStdin readline()
...
input to stdout.
2001-12-27 10:29:07 +00:00
Jack Jansen
6bc62c4951
Applying r22c1 branch mods back to the trunk.
2001-12-20 20:41:45 +00:00
Just van Rossum
7eb48e3283
Moved a bunch of routines from "blacklisted" to "graylisted", as they _are_
...
available in OSX (mach-o) but not in CarbonLib (neither on OSX or OS9).
2001-12-18 20:15:27 +00:00
Jack Jansen
620a7667eb
Updated to Universal Headers 3.4
2001-12-18 15:39:38 +00:00
Just van Rossum
f30c3ad0d9
Added missing docstring
2001-12-18 12:53:47 +00:00
Just van Rossum
66d78bf2a0
Added support for tab controls and initial (incomplete) support
...
for DataBrowser controls.
2001-12-18 12:47:47 +00:00
Just van Rossum
820867662b
Patch #494553 by Donovan Preston: initial implementation
...
for GetEventParameter().
2001-12-18 12:35:57 +00:00
Jack Jansen
086f7c3890
There's a new include file AEInteraction.h which contains AESend and friends.
2001-12-17 11:47:27 +00:00
Jack Jansen
ec982e2739
TickCount moved to a different header file. We manually added it back in here, for conveninece.
2001-12-17 11:46:50 +00:00
Jack Jansen
2168e9d602
Adapted for Universal Headers 3.4
2001-12-16 20:18:40 +00:00
Jack Jansen
6943444664
Finally CW7 allows me to replace the continually-in-need-of-updating exports files with one 6-line anti-export-file. Yeah! (Thanks Alex, for reminding me:-)
2001-12-15 00:23:35 +00:00
Just van Rossum
2c39115240
Made event callbacks more rubust: keep an actual reference to the
...
python callback, and do RemoveEventHandler() upon deallocation.
2001-12-14 23:16:04 +00:00
Jack Jansen
9635f33e5b
Quick patch to allow building with Universal Headers 3.4.
2001-12-14 23:03:07 +00:00
Jack Jansen
1b8bd94f73
The import of the scanner can also fail, cater for that.
2001-12-14 23:01:34 +00:00
Jack Jansen
28f14012d7
We have strdup(), but not its prototype:-(
2001-12-14 22:58:11 +00:00
Jack Jansen
031b779d43
Use getcwd(), not silly old getwd().
2001-12-14 22:57:34 +00:00
Jack Jansen
75401a0214
Updated for CW7
2001-12-14 22:53:16 +00:00
Jack Jansen
84937719a9
Updated to CodeWarrior Pro 7.
2001-12-14 22:50:26 +00:00
Jack Jansen
615e2505f0
Many of the new calls are Carbon-only. Flagged them as such.
2001-12-14 22:47:19 +00:00
Jack Jansen
81feb6c201
Add default values for options in the class init routine, not in the convenience wrapper function: distutils uses the class directly. Fixes bug #492665 .
2001-12-14 14:31:15 +00:00
Just van Rossum
7ec1c85d7a
- "manage" controls created by CreateXxxXxxControl() functions.
...
- FindControlUnderMouse() returns an existing control, not a new one.
2001-12-13 21:24:37 +00:00
Just van Rossum
0441dbff16
OSX workaround: don't crash if the extentions folder can't be found.
...
Not sure how to properly solve this.
2001-12-13 17:11:21 +00:00
Just van Rossum
4f6c05857f
include the proper header for Mach-O
2001-12-13 13:40:04 +00:00
Just van Rossum
663dd79861
added CoreGraphics to build list
2001-12-13 13:22:46 +00:00
Just van Rossum
11ccf3c1f0
added non-support for CoreGraphics...
2001-12-13 13:21:38 +00:00
Just van Rossum
d7fdba3d4d
project file for CoreGraphics
2001-12-13 13:20:00 +00:00
Just van Rossum
79e71f73e7
second CoreGraphics batch
2001-12-13 13:17:20 +00:00
Just van Rossum
c97eefc3c9
first checkin for CoreGraphics
2001-12-13 13:15:28 +00:00
Just van Rossum
d16199aade
fixed typo in my email address
2001-12-13 12:58:09 +00:00
Just van Rossum
d9c9b57e29
Don't barf when an AppleEvent was not handled. It's ok to ignore.
2001-12-13 12:57:11 +00:00
Just van Rossum
3f4651ec9c
re-checkin as AppleSingle
2001-12-13 12:54:36 +00:00
Jack Jansen
6c3145985f
Shut up gcc warning.
2001-12-12 22:51:39 +00:00
Jack Jansen
3339fc94b3
Updated for 2.2 release.
2001-12-12 22:44:59 +00:00
Just van Rossum
aa6e83f2e9
added CarbonEvents
2001-12-12 22:42:37 +00:00
Just van Rossum
e0b9fdca0d
Updated for Universal Headers 3.4.
2001-12-12 22:40:27 +00:00
Just van Rossum
485d92e127
Support files for CarbonEvents
2001-12-12 22:39:52 +00:00
Just van Rossum
cddfc8736f
Added proper error checking in event callback handler
2001-12-12 21:48:00 +00:00
Jack Jansen
ff3a69c4bc
Ready for 2.2 distribution.
2001-12-12 21:40:38 +00:00
Just van Rossum
f8d6473782
Exposed quite a few more calls.
2001-12-12 20:48:53 +00:00
Just van Rossum
c3baa0eff7
Fixed to the extend that it now builds in CW6, and actually works
...
a little.
2001-12-11 21:52:02 +00:00
Jack Jansen
9493455c2a
Updated for hfsplus module, new gusi libs.
2001-12-11 15:08:52 +00:00
Just van Rossum
14666cc04f
Added __members__ to FInfo object.
2001-12-11 14:04:12 +00:00
Jack Jansen
52306a780b
The new menu initialization code would also add the SIOUX menus if a (frozen) Python program had installed its own menubar previously. We now guard against this, with a bit of a hack: FrameWork uses the same Menu ID as Sioux, and the init code checks that the text in the menu is "About SIOUX" before replacing it.
2001-12-10 16:08:14 +00:00
Jack Jansen
b2fb202bc2
Updated, and converted line-endings to unix-style (oops:-)
2001-12-09 23:17:38 +00:00
Jack Jansen
edeea04bfd
Mods to make WASTE module compile and link for MachoPython. Not tested
...
any further, yet.
2001-12-09 23:08:54 +00:00
Guido van Rossum
146483964e
Patch supplied by Burton Radons for his own SF bug #487390 : Modifying
...
type.__module__ behavior.
This adds the module name and a dot in front of the type name in every
type object initializer, except for built-in types (and those that
already had this). Note that it touches lots of Mac modules -- I have
no way to test these but the changes look right. Apologies if they're
not. This also touches the weakref docs, which contains a sample type
object initializer. It also touches the mmap test output, because the
mmap type's repr is included in that output. It touches object.h to
put the correct description in a comment.
2001-12-08 18:02:58 +00:00
Just van Rossum
1f1e7270cf
OSX tweak.
2001-12-08 10:37:40 +00:00
Just van Rossum
59d5a9b5b7
Don't do App.DrawThemeListBoxFrame() upon activate: it starts
...
looking worse and worse if you deactivate/activate the window
a few times. I don't know how to fix this properly, but I'm beginning
to think that it's almost impossible to support the Appearance
manager properly due to the way W works. Time for W2?...
2001-12-08 09:51:41 +00:00
Jack Jansen
2a42c3a8d3
Not being able to copy PythonCore to the system-folder is not a fatal error, on OSX the user may not have permission to do so. Also give a more informative message in this case.
...
Fixes bug 475253.
2001-12-07 16:07:04 +00:00
Jack Jansen
101de912d3
Replace sprintf() with PyOS_snprintf().
2001-12-05 23:27:58 +00:00
Jack Jansen
a7594db5bc
Link more modules with weak import, and add CarbonAccessors.o to all relevant PowerPC toolbox modules. This, in combination with recent IDE mods, makes the IDE work again under MacOS 8.1.
2001-12-05 22:46:23 +00:00
Jack Jansen
9145be4310
Define NDEBUG if Py_DEBUG isn't defined.
2001-12-05 22:44:45 +00:00
Jack Jansen
b6b6c6c33f
Patch by Jason Harper to allow IDE to work again under MacOS 8.1. Plus appearance support for Wlist frames and focussing. Plus commented-out appearance support for the same for Wtext, which still needs some work.
2001-12-04 13:30:29 +00:00
Just van Rossum
2009aa66b4
removed some dead code.
2001-12-03 19:27:38 +00:00
Just van Rossum
cee949f945
Removed old and broken AE-based browser controller, use webbrowser.py
...
instead. This fixes bug #488420 .
2001-12-03 18:11:36 +00:00
Jack Jansen
20ffa0e5bc
A system() lookalike that sends commands to ToolServer, by Daniel Brotsky. The semantics aren't enough like system() to add this to the main Lib folder, but it is pretty useful nonetheless for selected people.
2001-12-03 00:11:35 +00:00
Jack Jansen
b3be216b41
Merged changes made on r22b2-branch between r22b2 and r22b2-mac (the
...
changes from start of branch upto r22b2 were already merged, of course).
2001-11-30 14:16:36 +00:00
Just van Rossum
f376ef0996
a whole bunch of OSX tweaks
2001-11-18 14:12:43 +00:00
Jack Jansen
c252e6304e
Add the MSL C library to the set of standard libraries
...
linked against. Most, but not all, of it is included in
PythonCore, but extensions may want to use some of
the routines not included. Fixes a bug reported by
Tom Loredo.
2001-11-10 23:21:55 +00:00
Jack Jansen
439eaa9f74
Fixed various problems with command-dot handling (some very old):
...
- Don't scan for cmd-. unless in the foreground
- Scan before switching out to other processes, not after
- don't scan if SchedParams.check_interrupt is false (!)
- But: do scan if we're blocked on I/O
One problem remains: in the last case KeyboardInterrupt is raised
too late.
2001-11-10 00:41:43 +00:00
Jack Jansen
5cc6d6e58e
Changed names, added bridge functions to macfs.fsref objects and
...
generally did things to get it working.
2001-11-06 15:57:59 +00:00
Jack Jansen
2bf52daedd
Added an error message when using FSRef objects on platforms that don't
...
support them.
2001-11-06 15:57:26 +00:00
Jack Jansen
df222d2691
Added hfsplusapi module.
2001-11-06 15:56:56 +00:00
Jack Jansen
6952177dba
Added longlong routines.
2001-11-06 15:55:23 +00:00
Jack Jansen
f122d366bf
Enabled WITH_LONG_LONG. No reason it was disabled, it has been supported by the Metrowerks compiler for quite some time.
2001-11-06 12:11:05 +00:00
Jack Jansen
ae2df93814
Removed unused variable.
2001-11-06 12:10:05 +00:00
Jack Jansen
24aa3cea07
First couple of fixes to make it compile with Universal 3.3.2.
2001-11-06 12:06:39 +00:00
Jack Jansen
e9b2a0597e
HFS+ API contributed by Nitin Ganatra. This checkin is identical to what he sent me, except for the namechange (fmgr->hfsplus).
2001-11-06 11:10:13 +00:00
Jack Jansen
9c2b514014
Correctly builds the C module now.
2001-11-05 16:21:45 +00:00
Jack Jansen
bd00884415
First tweaks to allow MacPython to be compiled with
...
Universal Headers 3.4
2001-11-05 16:16:39 +00:00
Jack Jansen
34cbe718d4
Fixed broken newlines and changed module name. Still untested.
2001-11-05 16:15:45 +00:00
Jack Jansen
e8cbb9f1e6
Regenerated with CF accessors.
2001-11-05 16:14:33 +00:00
Jack Jansen
52e9045da6
Carbon Event Manager module donated by Donovan Preston. Checked in as I received them (except for namechange), these will not work as-is, that'll be fixed in a later checkin.
2001-11-05 14:44:23 +00:00
Jack Jansen
537a69fe66
Make the CoreFoundation object _New and _Convert routines available to other modules. Idea by Donovan Preston, implementaion by me.
2001-11-05 14:39:22 +00:00
Jack Jansen
80c85d80c4
MacPython -vv equivalent printed incorrect filenames, fixed. Also
...
removed some outdated code.
2001-11-05 14:36:32 +00:00
Just van Rossum
3b5074b0fb
added acces to the cellSize field, rewrote setattr code
2001-11-05 11:12:12 +00:00
Just van Rossum
b26fbc6447
Rewritten the List Definition for the traceback window in Python,
...
which makes it work under Carbon. Next stop: the object browser.
2001-11-05 08:51:24 +00:00
Just van Rossum
dd4830ac1d
More List Manager interfacing:
...
- CreateCustomList(): write LDEF's in Python! (carbon + classic)
- list.LGetCellDataLocation()
(Jack: what's with this _WIN32/pywintoolbox.h stuff?)
2001-11-05 08:27:57 +00:00
Just van Rossum
6b45b1ee52
macdinking
2001-11-02 22:55:15 +00:00
Just van Rossum
2dd4d1600a
use 32bit APIs for control values, refactor slightly
2001-11-02 22:51:42 +00:00
Just van Rossum
a73f78b6ec
use proper APIs for activate/deactivate
2001-11-02 21:12:52 +00:00
Just van Rossum
9ae6f894b0
wintertime blues
2001-11-02 19:30:49 +00:00
Just van Rossum
2d564fdc06
removed import display hackery
2001-11-02 19:30:21 +00:00
Just van Rossum
f7f9388061
some support for syntax coloring, disabled for now
2001-11-02 19:24:41 +00:00
Just van Rossum
3160d95a73
changed the default font
2001-11-02 19:22:55 +00:00
Just van Rossum
01c9805b8d
fixed a non-Carbon Carbon import
2001-11-02 19:21:34 +00:00
Just van Rossum
64350b4610
- rearranged some imports
...
- removed default button drawing code: this doesn't work well
under OSX. Needs to be replaced by SetWindowDefaultButton()
calls, once we have those.
2001-11-02 19:17:16 +00:00
Just van Rossum
2e9e71fea6
rearranged some imports
2001-11-02 19:09:34 +00:00
Jack Jansen
95837f1973
We always install the Sioux menubar, in stead of only when no menubar
...
was installed previously. This fixes bug #476904 , but I'm not 100%
sure it doesn't break anything else. But if it does I'll notice tomorrow
when I try to build GRiNS:-)
2001-11-01 23:17:35 +00:00
Jack Jansen
01a9462787
Under MachO-Python unconditionally import macfsn.
2001-11-01 14:00:19 +00:00
Just van Rossum
67050d2d64
Workaround for odd problem on my machine: without this I get a traceback
...
if I hit enter instead of return upon file selection.
2001-10-31 22:58:23 +00:00
Just van Rossum
ab57c7dcfc
Moved macfsn hackery from macmain.c to macfsmodule.c so it loads
...
on demand instead of at startup.
2001-10-31 22:55:08 +00:00
Just van Rossum
05a56b87bb
call the correct base method (found due to better inheritance checking in 2.2)
2001-10-31 12:55:07 +00:00
Jack Jansen
d17f4bd6c8
Regenerated
2001-10-31 11:41:25 +00:00
Just van Rossum
fb57c435aa
Added structseq.c
2001-10-31 10:27:19 +00:00
Jack Jansen
1a29ed7415
Added Donovan Preston and reformatted to 80-char lines.
2001-10-31 10:13:52 +00:00
Jack Jansen
5ded1bf5c7
Mod by Donovan Preston to allow MacPython to live in a Python.app bundle and understand the __main__.py convention used there for applets. This gives us applets that work on both OS9 and OSX! (Although "applet" may not be the correct word for something that is going to be multimegabyte:-).
...
But: the code is currently disabled, as it requires CodeWarrior 7 and I'm still using 6.
2001-10-30 22:48:36 +00:00
Jack Jansen
e4df3fd90d
Files used for MacPython 2.2b1 distribution.
2001-10-30 22:42:45 +00:00
Jack Jansen
f0a2ac9d5b
Moved PythonScript to unsupported at Bill Bedford's request. It'll go
...
away completely next release, unless someone complains.
2001-10-26 12:55:39 +00:00
Jack Jansen
e674ca737d
Added various tidbits.
2001-10-25 22:26:00 +00:00
Jack Jansen
e54968a11a
Some escaped newlines had spaces between the backslash and the newline. Also slightly changed the comment on xstat().
2001-10-23 22:28:23 +00:00
Jack Jansen
9ca14ec7cc
New URL for Joe Strouts example page.
2001-10-23 22:27:17 +00:00
Jack Jansen
6f1da007b9
Added _hotshot.
2001-10-23 22:23:44 +00:00
Jack Jansen
a43ad368ba
quit() wasn't included in the suite. This is a quick manual patch to add it.
2001-10-23 22:23:02 +00:00
Jack Jansen
5d528b787e
Tweaks for MacPython 2.2b1
2001-10-23 22:22:09 +00:00
Jack Jansen
8626aeb1ce
Tweaks for MacPython 2.2b1.
2001-10-23 22:18:10 +00:00
Guido van Rossum
98bf58f1c6
SF patch #462296 : Add attributes to os.stat results; by Nick Mathewson.
...
This is a big one, touching lots of files. Some of the platforms
aren't tested yet. Briefly, this changes the return value of the
os/posix functions stat(), fstat(), statvfs(), fstatvfs(), and the
time functions localtime(), gmtime(), and strptime() from tuples into
pseudo-sequences. When accessed as a sequence, they behave exactly as
before. But they also have attributes like st_mtime or tm_year. The
stat return value, moreover, has a few platform-specific attributes
that are not available through the sequence interface (because
everybody expects the sequence to have a fixed length, these couldn't
be added there). If your platform's struct stat doesn't define
st_blksize, st_blocks or st_rdev, they won't be accessible from Python
either.
(Still missing is a documentation update.)
2001-10-18 20:34:25 +00:00
Jack Jansen
b088dd4a26
Some of the lesser used targets still used FMADD/FMSUB instructions. Fixed.
2001-10-10 21:59:08 +00:00
Jack Jansen
e67dab3d3f
Updated, and added a very terse description of PyMac_SetConsoleHandler().
2001-10-09 23:14:06 +00:00
Jack Jansen
893b0ab988
Fixed the embedding demo to correctly show the use of
...
overriding the console writer.
2001-10-09 23:09:00 +00:00
Jack Jansen
a0472f73e6
Mods by Alexandre Parenteau to allow embedding programs to disable the MacPython console window completely, and optionally route console output (and input) to routines provided by the embedding app.
...
Things don't fully work yet, but at least it doesn't break anything.
2001-10-08 15:35:38 +00:00
Jack Jansen
509ad42470
Brought up to date with the current state of affairs.
2001-10-08 15:32:17 +00:00
Jack Jansen
b58f1c0c03
Added declarations for PyMac_SetConsoleHandler, PyMan_DUmmyReadHandler
...
and PyMac_DummyWriteHandler.
2001-10-08 13:16:39 +00:00
Jack Jansen
144d387c85
Added weakrefobject.c and regenerated .exp files.
2001-10-08 13:01:05 +00:00
Just van Rossum
c72d4cddc9
Fixed old bug (caused by careless Carbonizing) that noone noticed until
...
this week (apparently me and Bob Heeter at more or less the same time).
2001-09-24 17:29:09 +00:00
Jack Jansen
998a40a6d4
Mods by Donovan Preston (with changes by me to make them "go with the flow")
...
that will detect an __main__.py or __rawmain__.py in the application bundle.
This file is then exectued as the main script. We now have applets in
MachO Python!!!
The difference between __main__ and __rawmain__ is that the former gets a
complete simulated argv (so you can drop files on the applet and the script
sees them in sys.argv) while the latter skips the argv simulation and the
<option>key dialog. This keeps the AppleEvent that started the app intact,
as well as the funny "-psn_xxxx" argv[1] argument, so the script can do
with these what it wants.
2001-09-11 13:08:10 +00:00
Jack Jansen
0b60772ee9
- Removed the . in the extensions.
...
- Allow any file to be dropped on the interpreter (for file args).
2001-09-11 13:01:07 +00:00
Jack Jansen
be67f8a5bf
removed debug print.
2001-09-11 13:00:16 +00:00
Jack Jansen
408c16fad0
Added a note about making sure the Lac/Lib directory is in sys.path.
2001-09-11 11:30:02 +00:00
Jack Jansen
6438e1d280
Failing to import macfsn is not a fatal error.
2001-09-11 11:29:31 +00:00
Jack Jansen
cf0319326a
Implemented PyMac_GetFullPathname for MacPython.
2001-09-11 09:22:19 +00:00
Jack Jansen
697842f58c
Replaced PyMac_FullPath by PyMac_FullPathname, which has an extra 'length'
...
parameter for the return string (as unix pathnames are not limited
by the 255 char pstring limit).
Implemented the function for MachO-Python, where it returns unix pathnames.
2001-09-10 22:00:39 +00:00
Jack Jansen
c6249e9fef
Superseded by Python 2.2.vct.
2001-09-10 21:03:06 +00:00
Jack Jansen
c432cba3f2
Install the dialog resources into the application bundle. The EasyDialogs
...
selftest now works.
2001-09-09 00:36:52 +00:00
Jack Jansen
eb30843ea4
Don't call MacOS.SchedParams() in MachO, it doesn't exist.
2001-09-09 00:36:01 +00:00
Jack Jansen
a48d4eaddf
Minimal module to decode AppleSingle files (the way resource files are
...
stored in the CVS repository). It can either decode resource/data forks
in the standard Mac way or decode only the resource fork but store
the result in the data fork (the MacOSX preferred way). Finder info
and all other stuff is ignored.
2001-09-09 00:35:19 +00:00
Jack Jansen
f7e571432a
Final tweaks for 2.2a3 distribution.
2001-09-08 21:38:26 +00:00
Jack Jansen
02646fe6d3
Oops, this file is very outdated. Removed.
2001-09-08 13:57:16 +00:00
Jack Jansen
71707f3bb8
Patch by Mark Day to allow from __future__ imports. Looks harmless
...
enough, but may have side-effects because it preallocates a single
codeop.Compiler() to compile all statements the user enters.
Just: please review and retract/modify if necessary.
2001-09-07 10:11:31 +00:00
Jack Jansen
0511b764d1
Minimal instructions for using the Makefile here. Also a clear
...
statement that this is a proof-of-concept meant for people to
experiment with, nothing more.
2001-09-06 16:36:42 +00:00
Jack Jansen
638e5e39cf
Added targets to install the application, and to install mac-additions
...
in Python.
2001-09-06 16:33:57 +00:00
Jack Jansen
75ed167527
Rudimentary makefile for building the executable to go into a
...
fullblown OSX application. It is starting to work, but building
the application bundle is still handwork, and we need a minimal
readme file too.
2001-09-05 22:09:50 +00:00
Jack Jansen
dff7770b7f
Changes to make these work under OSX as the main program for a
...
fullblown drag and drop application. To my surprise it is starting
to work already: Python actually executes a script dropped on it.
To be done:
- Make sure this still works in MacPython
- Don't lose argv[0] in the process
- Applet support
2001-09-05 22:07:52 +00:00
Jack Jansen
b30e106633
Python is a Shell, not a Viewer.
2001-09-05 22:04:25 +00:00
Jack Jansen
044d95e9f7
A few more gcc warnings bite the dust.
2001-09-05 15:44:37 +00:00
Jack Jansen
fd064863eb
Shut up many more gcc warnings.
2001-09-05 10:31:52 +00:00
Jack Jansen
f894f6f4e9
Added prototypes to shut gcc -Wstrict-prototypes up.
2001-09-04 22:29:31 +00:00
Jack Jansen
9642ecad06
Shut up a few more gcc warnings.
2001-09-04 22:25:47 +00:00
Jack Jansen
1767f93603
Added prototypes to silence gcc strict-prototype warnings.
...
Fixed a few missing return values.
2001-09-04 22:20:39 +00:00
Jack Jansen
06d2e1af35
Regenerated without default int return types.
2001-09-04 22:19:18 +00:00
Jack Jansen
f9114239e7
Added pythonpath.r to the developer distribution. It's
...
useful to people extending Python. Suggested by
Alexandre Parenteau.
2001-09-04 22:15:05 +00:00
Jack Jansen
f6af601dd4
Template for an OSX PythonInterpreter application.
2001-09-04 21:28:03 +00:00
Jack Jansen
d043ab6503
Photoshop sources for icon files. Not pretty, but hey! I'm not an
...
artist (and a certain artist didn't jump in, yet).
2001-09-04 21:25:36 +00:00
Jack Jansen
13b54a9da3
Added the last few missing files, and put everything in the right packages.
...
Tested, too:-)
2001-09-02 14:48:32 +00:00
Jack Jansen
6114297c87
Silly typos.
2001-09-02 00:09:35 +00:00
Jack Jansen
569ba10610
Don't call PyMac_HandleEvent in unix-Python
2001-09-02 00:08:16 +00:00
Jack Jansen
38c4dd4d53
Regenerated, mainly for new GC routines.
2001-09-01 23:42:11 +00:00
Jack Jansen
b18ced2909
xx.prj has been replaced by xx.mcp.
2001-09-01 23:40:19 +00:00
Jack Jansen
fabd00fa91
Added glue routine for PyMac_BuildFSSpec, PyMac_GetFSRef and PyMac_BuildFSRef.
...
Moved the declarations to pymactoolbox.h.
2001-09-01 23:39:58 +00:00
Jack Jansen
62d24a0f50
Don't call PyMac_HandleEvent if we're in unix-Python.
2001-09-01 23:38:50 +00:00
Jack Jansen
e9fb3d6db3
Include Carbon/Carbon.h if we're on OSX.
2001-09-01 23:38:13 +00:00
Jack Jansen
0de279b9cd
Updated the Popt resources for the applets to the newest version.
2001-09-01 23:37:28 +00:00
Jack Jansen
ff5d8aaa28
Added preferences/startup options for division warning
...
and accepting unix-style newlines on input.
Also (finally) added a startup option to get -vv behaviour.
Moved __convert_to_newlines to main.c because that's easier with the newline option.
2001-09-01 22:37:54 +00:00
Jack Jansen
a5ffeb69ab
Added preferences/startup options for division warning
...
and accepting unix-style newlines on input.
2001-09-01 22:36:29 +00:00
Jack Jansen
7561d9ead9
Added all the new files in the right packages and file groups (I think, untested).
2001-08-30 22:10:10 +00:00
Jack Jansen
1da6eb091a
Superseded by the (generated) xx.mcp.
2001-08-30 21:29:57 +00:00
Jack Jansen
ba0ba411d1
Case mismatch in "import Types". Apparently nobody has looked at this for a looooong time. Reported by Chris Smith.
2001-08-30 21:22:10 +00:00
Jack Jansen
b214c36d0a
We should look in the directory containing the module, not in the module itself, when we're looking for the resource file.
2001-08-30 21:19:42 +00:00
Jack Jansen
34eaf86e95
Started on the 2.2a2 installer
2001-08-30 13:26:53 +00:00
Jack Jansen
7c10008917
Added xx and xxsubtype modules, for completeness and because xxsubtype is used by the test suite.
2001-08-29 22:08:06 +00:00
Jack Jansen
028f2d5d89
Started on release notes and readme for 2.2a2.
2001-08-29 22:04:08 +00:00
Jack Jansen
3070ee6b37
Experimental feature: allow \n as well as \r as newline for text files, by breaking in to the lowlevel I/O system. Can be disabled by defining WITHOUT_UNIX_NEWLINES.
2001-08-27 23:16:34 +00:00
Jack Jansen
e7d8322630
exceptions was missing from the module list. Added.
2001-08-27 22:50:41 +00:00
Jack Jansen
3c06b9a7d4
Use the new macresource module to open the accompanying resource file (if needed).
2001-08-27 21:41:23 +00:00
Jack Jansen
a5d7da528b
need() now returns the refno of the resource file opened, or None if the
...
specified resource was already available and no file was opened.
2001-08-27 21:37:45 +00:00
Jack Jansen
de3226f7f9
Module to help other modules locate their resources. It currently knows about
...
resources in applets and separate OS9 style resource files, but it will
eventually also be thought the hoops to jump through on OSX/MachO.
2001-08-27 21:21:07 +00:00
Jack Jansen
8f2b13efce
These have long outlived there usefulness, in my opinion. Moved to Unsupported.
2001-08-27 21:17:44 +00:00
Jack Jansen
de1d4957c0
Added Dean Draayer to the thank you list.
2001-08-27 15:30:48 +00:00
Jack Jansen
911e87de6f
Patch by Dean Draayer: support for indeterminate progress bars. You
...
get these by specifying maxval=0, which is now also the default.
Untested.
2001-08-27 15:24:07 +00:00
Jack Jansen
206bd57355
When we're freezing to sourcecode and one of the modules is a dynamic module that is in a package we freeze that module at toplevel (outside any package). Not optimal, but there is little more we can do as config.c has no way to specify a builtin module has to be dumped into a package.
2001-08-27 13:59:35 +00:00
Jack Jansen
60aa4ccdc0
Updated to the current state of affairs.
2001-08-27 13:58:21 +00:00
Jack Jansen
1c2a2b71e1
Added targets for building the Carbon and Classic interpreter if you don't want to go through fullbuild.py.
2001-08-27 13:57:43 +00:00
Jack Jansen
dc4d925be9
- A forgotten "from Carbon".
...
- Made the "killed unknown window" code dependent on a global var,
so you can easily turn the behaviour off for IDE debugging.
2001-08-27 10:55:41 +00:00
Jack Jansen
4d3052acb0
A few forgotten "from Carbon"s.
2001-08-27 10:54:55 +00:00
Jack Jansen
5a6fdcd371
Import the MacOS toolbox modules from the Carbon package.
2001-08-25 12:15:04 +00:00
Jack Jansen
6dba6bc0a2
Step 2 in putting the MacOS toolbox modules in a package: issue a DepracationWarning in the compatibility modules.
2001-08-25 11:53:43 +00:00
Jack Jansen
75a2f85593
Last renamed module that wasn't removed yet.
2001-08-24 09:17:15 +00:00
Jack Jansen
cf144b0e9e
Wrapper modules underound the toolbox modules, which now have an _ prepended.
2001-08-23 14:13:06 +00:00
Jack Jansen
25a5bd7708
Renamed.
2001-08-23 14:11:10 +00:00
Jack Jansen
50ecb0ad83
Renamed the Mac toolbox modules to have an initial _ in their name.
2001-08-23 14:02:09 +00:00
Jack Jansen
77105a960b
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
2001-08-23 13:51:46 +00:00
Jack Jansen
404e0b7c1e
These long dead files somehow got revived. Killed them (but for how
...
long? :-).
2001-08-21 10:51:47 +00:00
Jack Jansen
0e53685d10
This file has been dead for aeons. I have no idea how it suddenly
...
surfaced again.
2001-08-21 10:49:11 +00:00
Jack Jansen
a0f4369f5a
Oops, these compatibility modules were missing. Which went unnoticed because their companions had been put in the wrong place.
2001-08-20 15:35:57 +00:00
Jack Jansen
7586b049ba
Various toolbox modules were generated in lib-dynload accidentally
...
in stead of in Carbon. Fixed.
2001-08-20 15:31:56 +00:00
Jack Jansen
d0688ebc10
Oops, this file shouldn't have been removed.
2001-08-20 10:20:27 +00:00
Jack Jansen
914f9e926d
The destination folder is now :Lib:lib-dynload
2001-08-19 22:32:57 +00:00
Jack Jansen
f60edf861c
PATCHLEVEL is outdated, use PY_VERSION.
2001-08-19 22:32:27 +00:00
Jack Jansen
ad251c7516
Step 1 in packaging the toolbox modules and making MacPython more
...
like normal Python. toolbox modules are now in the Carbon package
in :Mac:Lib, with a workaround flat namespace in :Mac:Lib:lib-compat.
Other dynamic modules are in :Lib:lib-dynload. :Mac:Lib:lib-toolbox and
:Mac:Plugins are gone.
2001-08-19 22:30:31 +00:00
Jack Jansen
d39c246a4c
Dynamic modules are now put in :Lib:lib-dynload by default. For the toolbox modules this is overridden to put them in :Mac:Lib:Carbon.
2001-08-19 22:29:57 +00:00
Jack Jansen
edb17c971f
Compatibility modules. lib-compat is on the default sys.path for MacPython 2.2, and each of these modules imports * from its namesake in the Carbon package.
2001-08-19 22:28:32 +00:00
Jack Jansen
63f6b4984b
Moved to either :Mac:Lib (WASTEconst and files that weren't generated) or to the Carbon package.
2001-08-19 22:20:55 +00:00
Jack Jansen
ab98ae9b4e
The modules with toolbox constants.
2001-08-19 22:13:00 +00:00
Jack Jansen
06eb422a37
Carbon is now a package encapsulating all the toolbox modules. Carbon is not
...
the best of names right now (because QuickTime, for instance, is part of
its own framekwork in OSX terminology, and because all these modules also
work on pre-Carbon MacOS) but in a year or so it will be:-).
2001-08-19 22:07:59 +00:00
Jack Jansen
52caac1c55
Moved here form lib-toolbox, for lack of a better place to go.
2001-08-19 22:05:33 +00:00
Jack Jansen
d0fc42f439
Moved here from lib-toolbox, where they should never have been in the first place (all the other stuff there wa generated with bgen).
2001-08-19 22:05:06 +00:00
Jack Jansen
42b1539e98
Step 1 in packaging the toolbox modules and making MacPython more
...
like normal Python. toolbox modules are now in the Carbon package
in :Mac:Lib, with a workaround flat namespace in :Mac:Lib:lib-compat.
Other dynamic modules are in :Lib:lib-dynload. :Mac:Lib:lib-toolbox and
:Mac:Plugins are gone.
2001-08-19 22:02:56 +00:00
Jack Jansen
106fceacb2
Temporarily disabled the import hook. It breaks with the package-based
...
Carbon and its workaround.
2001-08-19 22:00:20 +00:00
Jack Jansen
13dca1d50f
Got rid of all the plugin xml files: they are generated, and
...
they were only in the repository for people building MacPython from
CVS (the .cmp project files are in a MacPython source
distribution). The process to regenerate them is now easier (and
documented!) so these shouldn't be needed anymore.
And eventually they should all be built by setup.py anyway.
2001-08-19 20:28:39 +00:00
Jack Jansen
e791a6421f
If genpluginprojects is called from fullbuild we set the Python source directory to be the same as fullbuild uses (in stead of using the default sys.prefix). This fixes an issue Mark Day raised that you can't use fullbuild with one Python installation to build another one.
2001-08-16 20:39:17 +00:00
Just van Rossum
7a401795db
Long time overdue: change sys.path defaults so that people will
...
have to do "from PIL import Image" instead of "import Image".
2001-08-16 15:16:19 +00:00
Jack Jansen
1690409243
Updated to the current state of things (long overdue).
2001-08-16 14:10:56 +00:00
Jack Jansen
686a4a6d0f
Removed expat from the access paths, it isn't needed.
2001-08-16 14:10:08 +00:00
Jack Jansen
ce3016a142
Merged release21-maint changes.
2001-08-12 00:11:15 +00:00
Jack Jansen
d7b568ac4d
test_glob found a nasty bug in GUSI opendir(): it will not fail when called on files, but in stead open the parent directory! We now explicitly test for the argument being a directory and simulate ENOTDIR otherwise.
2001-08-11 23:18:55 +00:00
Jack Jansen
b5982221bb
Before asking the finder to start the application (if start=1 is specified), check that it isn't incidentally running already.
2001-08-11 22:29:18 +00:00
Jack Jansen
fb513a20b5
Got rid of the activate() so codewarrior doesn't come to front. It isn't needed, and without it you can get work done while building the projects:-)
2001-08-11 22:28:11 +00:00
Jack Jansen
af86470e85
Added a note about the various tests here.
2001-08-11 21:13:19 +00:00
Just van Rossum
f3456912e4
use the proper prefix file under Carbon
2001-08-11 10:07:23 +00:00
Jack Jansen
09379da7de
Regenerated.
2001-08-10 12:17:04 +00:00
Jack Jansen
0cdba05815
Changed reference to config.h to pyconfig.h.
2001-08-10 10:01:05 +00:00
Jack Jansen
ab04653715
Resource files for OSX Python.framework. Incomplete, and they should probably
...
eventually be generated so version numbers and such are automatically
correct, but they do the job for now.
2001-08-08 22:00:26 +00:00
Jack Jansen
4795fccd66
Adapted for pymactoolbox.c and changed externals elsewhere.
2001-08-08 15:29:22 +00:00
Jack Jansen
deefbe5666
- Don't return mac-style pathnames in unix-Python.
...
- Fixed up a lot more prototypes (gcc also wants them on static routines)
- Fixed various other gcc warnings.
2001-08-08 13:46:49 +00:00
Jack Jansen
94bebc0381
Split macglue.c into two: a new mactoolboxglue.c (in ./Python)
...
with functionality needed for both unix-Python and MacPython and a
new smaller ./Mac/Python/macglue.c which contains MacPython stuff only.
pymactoolbox.h has moved to ./Include from ./Mac/Include and now also
contains the relevant stuff from macglue.h.
The net effect of this is that the ./Mac subdirectory is not needed
anymore for building the unix-Python core on MacOSX (it is needed
for building the extension modules).
2001-08-08 13:17:31 +00:00
Jack Jansen
c4dcb63019
Brought up-to-date.
2001-08-07 15:34:47 +00:00
Jack Jansen
b760923b20
Got rid of 68k-Mac and other outdated ifdefs.
2001-08-07 15:30:23 +00:00