| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Cater for that by working from sys.executable.
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
- The applet .rsrc file should be called python.rsrc, it is not based on the
applet name.
|
|
|
|
| |
- "Open Document" appleevent is "odoc", not "open".
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
| |
be invoked by PythonLauncher when needed.
Also changed the names of various variables in the Makefile to match
what the main Makefile has.
|
|
|
|
| |
PythonLauncher.app has taken that responsibility over.
|
|
|
|
| |
dragging or double-clicking the script.
|
|
|
|
| |
- Build PythonLauncher.app and PythonIDE.app as well as Python.app.
|
| |
|
|
|
|
| |
optimal, especially if Terminal wasn't running yet, but it works.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
added a bit more trace output if verbose > 1.
|
|
|
|
| |
Fixed it.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
- Cleaned up Python banner string, so the normal build for MacPython 2.3
will have a short banner.
|
|
|
|
| |
the "standard" modules. Unfinished, but shouldn't harm anything.
|
|
|
|
| |
these scripts work with the new precompiled headers.
|
| |
|
|
|
|
| |
header files. If we're building with precompiled headers these are in scope.
|
|
|
|
| |
header file in stead of mwerks_carbonplugin_config.h.
|
|
|
|
| |
files open when we're rebuilding them all.
|
|
|
|
|
| |
- Use precompiled headers
- Rationalize config file names.
|
|
|
|
|
|
| |
the default (or something like that). Cater for this.
Also put in a safeguard against very long help strings.
|
|
|
|
|
| |
- Use precompiled headers
- Rationalized naming scheme
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
- These are the final projects that support classic.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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]
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
| |
initialize=xxx argument.
Should fix #492465.
|
|
|
|
| |
and maintain. Fixes #557482.
|
| |
|
|
|
|
| |
(to enable files to be created from the Unix side of OSX to be droppable on the MacPython interpreter).
|
| |
|
| |
|
| |
|