Tim Peters
5a9fb3c415
Whitespace normalization.
2005-01-07 16:01:32 +00:00
Jack Jansen
c77f6dfd92
Fix for #1091468 : DESTROOTed frameworkinstalls fail. Added a --destroot
...
option to various tools, and do the right thing when we're doing a destroot
install.
Will backport to 2.4 and 2.3.
2004-12-27 15:51:03 +00:00
Just van Rossum
ed8bfce002
Fixed a bug that's been there from the beginning but wasn't noticed
...
until now: the inheritance of default values was the wrong way around.
This caused app bundles to get a type of "BNDL" instead of "APPL".
Apparently this is not a problem until you try to drag your app to
the dock.
----------------------------------------------------------------------
2003-07-10 14:53:27 +00:00
Just van Rossum
be56aae36a
#765903 :
...
- added bundle_id/--bundle-id option, to specify the CFBundleIndentifier
#765615 :
- in the appropriate situation, prepend $PATH with our path instead of
setting it.
2003-07-04 14:20:03 +00:00
Jack Jansen
bbaa083745
If a --python option is used to specify the Python to use in the #!
...
line also use this as the executable in the bundle.
2003-07-04 11:05:35 +00:00
Just van Rossum
79b0ae12fd
restore 2.2 compatibility:
...
- don't use "abc" in aString
- don't reorganize extension modules when not using zipimport
2003-06-29 22:20:26 +00:00
Just van Rossum
762d2cce6f
- added --semi-standalone option that builds apps that depend on an
...
installed Python, yet include any modules not in the std lib
- reworked extension module inclusion code: put all .so files in
a subdirectory of Contents/Resources/, but more importantly,
correctly support extensions that are submodules.
2003-06-29 21:54:12 +00:00
Just van Rossum
dc31dc02f7
- do the right thing with symlinks inside directories we're copying
...
- move the normpath stuff around a bit
- added dubious special case to addPythonFramework()
2003-06-20 21:43:36 +00:00
Just van Rossum
6a55242685
make sure paths to dirs don't end in a /
2003-06-20 21:26:55 +00:00
Just van Rossum
00a0b97dc5
Reworked --strip option: it will now look at _any_ file that's marked
...
executable in the bundle. Therefore got rid of the "binaries" attribute.
2003-06-20 21:18:22 +00:00
Just van Rossum
9e50023898
register the library inside Python.framework as eligable for stripping
2003-06-20 20:05:40 +00:00
Just van Rossum
3166f59d2a
Add initial standalone support for Python.framework
2003-06-20 18:56:10 +00:00
Jack Jansen
8ba0e80117
Added a --python option, which sets the python to be used in the #! line
...
in the bootstrap script of the applet.
2003-05-25 22:00:17 +00:00
Jack Jansen
0ae3220736
Detabbed.
2003-04-09 13:25:43 +00:00
Just van Rossum
5c83bb0f4a
use os.path.realpath() instead of os.readlink()
2003-03-21 22:22:19 +00:00
Just van Rossum
82ad32ec39
only set $PYTHONHOME when building a standalone app.
2003-03-21 11:32:37 +00:00
Just van Rossum
15624d850b
Patch #681927 from Robin Dunn: add option to add shared libraries or
...
frameworks to the bundle.
2003-03-21 09:26:59 +00:00
Just van Rossum
a87e44792c
set $PYTHONHOME in the bootstrap script, for no good reason really,
...
except to avoid getpath.c giving unsollicited advice on stderr.
2003-03-20 21:37:05 +00:00
Jack Jansen
620c0837bd
Actually *do* override the type in AppBuilder.
2003-03-05 14:44:54 +00:00
Jack Jansen
cc81b80710
Moved some application-bundle specific code from the BundleBuilder class to
...
AppBuilder, and set the default type to BNDL (overridden in AppBuilder).
This surfaced when trying to build help bundles.
2003-03-05 14:42:18 +00:00
Just van Rossum
0ff7a4e7c1
use the same Python for running the bootstrap script and the main program
2003-02-26 11:27:56 +00:00
Just van Rossum
ddf5283ad1
remove sitecustomize hack, will be solved elsewhere
2003-02-26 11:07:59 +00:00
Jack Jansen
ade626464d
Reverted the rev. 1.8 change: the magic for decoding resourcefiles
...
is now in buildtools.
2003-02-25 22:58:33 +00:00
Just van Rossum
4983331385
tweak error message
2003-02-25 21:08:12 +00:00
Just van Rossum
7215e08846
- renamed the --copyfile option to --file.
...
- tweaked the help text a little.
(Jack: up to you to change your client code.)
2003-02-25 21:00:55 +00:00
Just van Rossum
8a3ed3f81e
added some comments, minor tweaks
2003-02-25 20:53:12 +00:00
Just van Rossum
7322b1ad46
Resolving parts of #688907 :
...
- Replaced bootstrap shell script with Python script. This means
standalone apps built with bundlebuilder will not work on MacOS < 10.1,
since we depend (again) on an installed Python.
- Add a hack to set sys.executable; the bootstrap script does os.execve()
with an argv[0] that's different from the actual Python executable
(it has to match the CFBundleExecutable entry in the Info.plist to make
the app work both from the Finder and the command line, and it has to be
the bootstrap script), yet a proper sys.executable is needed to spawn
auxiliary processes.
2003-02-25 20:15:40 +00:00
Jack Jansen
00cbf07ca7
Added a -c (--copyfile) option with argument src:dst which copies file src
...
into dst in the bundle. The Python API already had this functionality
2003-02-24 16:27:08 +00:00
Jack Jansen
a03adde31b
Added an argv_emulation option (command line option: --argv or -a) which
...
creates the sys.argv emulation wrapper for droplets. Also updates
the plist, if needed, and the includedModules (but this last is untested).
2003-02-18 23:29:46 +00:00
Jack Jansen
d6a3f93070
Use "$@" to pass arguments to Python in stead of "${1}". This passes all
...
arguments, and also does the right thing for the no argument case.
2003-02-18 11:24:31 +00:00
Jack Jansen
946c19445c
When installing resource files whose name ends in .rsrc use the
...
"copy anything to a data fork based resource file" trick of macresource.
Fixes #688007 .
2003-02-17 16:47:12 +00:00
Just van Rossum
c96d6ce3c2
Thank you sir, can I have another.
2003-02-12 16:19:39 +00:00
Just van Rossum
9af6968b90
jeez, now I know why I shouldn't even _want_ to learn sh.
2003-02-02 18:56:37 +00:00
Just van Rossum
2aa09566c5
icon support by Robin Dunn, closes patch #678218
2003-02-01 08:34:46 +00:00
Just van Rossum
504377d4dd
make sure src exists before creating a symlink
2003-01-17 20:02:06 +00:00
Just van Rossum
9896ea24f9
make sure Info.plist has a CFBundleIdentifier entry
2003-01-13 23:30:04 +00:00
Just van Rossum
109ecbf7a5
Replaced imp.set_frozenmodules() cruft with proper zipimport support.
...
This work uncovered the zipimport bug in 2.3a1 -- wish I'd had time to
do this before the release :-(.
2003-01-02 13:13:01 +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