Commit Graph

353 Commits

Author SHA1 Message Date
Jack Jansen 4ea1f455d7 Go from filename to FSSpec via FSRefs, to work around outdated macfs module
in python 2.2.
2002-11-15 00:08:29 +00:00
Jack Jansen d892d4e1c0 Make the Resources directory if needed. 2002-11-15 00:07:31 +00:00
Jack Jansen 65fe8dda15 Script to create .app bundles. Largely untested. 2002-11-06 23:15:51 +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 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 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 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 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 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 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 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 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 3bd3fedeca Added _IBCarbon module. 2002-08-05 14:12:24 +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
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 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
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 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 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 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 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 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 86c4d64751 Modifed for new included expat. 2002-03-14 23:14:43 +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 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 4a667c724a CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads. 2002-01-11 12:39:03 +00:00
Jack Jansen 1b8bd94f73 The import of the scanner can also fail, cater for that. 2001-12-14 23:01:34 +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 aa6e83f2e9 added CarbonEvents 2001-12-12 22:42:37 +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 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 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
Jack Jansen df222d2691 Added hfsplusapi module. 2001-11-06 15:56:56 +00:00
Jack Jansen 6f1da007b9 Added _hotshot. 2001-10-23 22:23:44 +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 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 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 3c06b9a7d4 Use the new macresource module to open the accompanying resource file (if needed). 2001-08-27 21:41:23 +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 5a6fdcd371 Import the MacOS toolbox modules from the Carbon package. 2001-08-25 12:15:04 +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 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 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 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
Jack Jansen 67992b7732 Bit another bullet: all toolbox modules are now in dynamically loaded modules. Everything still seems to work, but the ConfigurePythonXXX on initial install may still need work. 2001-08-07 13:53:25 +00:00
Fred Drake 79e75e1916 Use string.ascii_letters instead of string.letters (SF bug #226706). 2001-07-20 19:05:50 +00:00
Jack Jansen 654c8db9a0 Typo in the classic mlte build line. 2001-07-16 22:04:08 +00:00
Jack Jansen 198641247b Added Mlte module (which, to my surprise, is available for classic ppc as well). 2001-07-13 20:57:47 +00:00
Jack Jansen f4b9fb719a Added CF module build and project generation (carbon only). 2001-06-26 21:52:08 +00:00
Jack Jansen 11493bc65f Simple script to regenerate all bgen-generated modules. 2001-05-22 22:18:21 +00:00
Jack Jansen e8f53bb779 Dynamically loaded toolbox modules don't need to link against each other anymore, due to the new glue code that ties them together. 2001-05-17 22:12:55 +00:00
Jack Jansen 5a4718e1ed Bah, somehow the macroman<->iso-latin-1 translation got lost during the merge. Checking in one fixed file to make sure MacCVS Pro isn't the problem. If it isn't a flurry of checkins will follow tomorrow. If it is... well... 2001-05-15 20:22:08 +00:00
Jack Jansen 2e2546c5fd On OSX always copy PythonCore. It turns out an orphaned alias in /Library/CFMSupport (happens when you remove python and aliased pythoncore) wreaks havoc with the system. 2001-03-29 13:53:19 +00:00
Jack Jansen 9bfae985ab Changed some of the dialogs to be a little clearer. 2001-03-29 13:52:16 +00:00
Jack Jansen 3f4c173d5c Oops, ISO translation was off. Fixed. 2001-03-27 21:32:34 +00:00
Jack Jansen 875b51dff9 Added dummy _tkinter module for Carbon, which explains that Tkinter isnt supported under Carbon. 2001-03-20 23:30:06 +00:00
Jack Jansen d11f93c475 Look for shared libraries first in kLocalDomain and then in kOnSystemDisk.
Don't do sys.prefix==os.getcwd() check unless we're an applet.
2001-03-15 14:28:40 +00:00
Jack Jansen 0a3939fc71 Finished implementation of removing incorrect preferences file. 2001-03-09 23:15:27 +00:00
Jack Jansen 54f3bdbfe1 Detect that the preference file may be incorrect, and offer to remove it. This isn't finished yet. 2001-03-08 23:07:57 +00:00
Jack Jansen c1463c9870 macostools.copy() now has an optional forcetype flag, which sets the filetype. This is used by various tools to set the type to APPL when copying interpreter template files (Atmp filetype). 2001-03-06 22:46:25 +00:00
Jack Jansen 36bcf9b94f Re-try the file copy once if it fails. This works around an obscure and non-reproducibe bug in GUSI. 2001-03-06 22:43:06 +00:00
Jack Jansen a647807e40 Also build Imaging for Carbon. 2001-03-01 23:15:01 +00:00
Jack Jansen f7fb3e6435 Oops, need to import Res. 2001-02-28 15:53:18 +00:00
Jack Jansen 72b97aed80 If we can't find our splash dialog (i.e. we're probably running from source) go into interactive mode: print what we're doing and ask about carbon/classic configure. 2001-02-28 11:23:04 +00:00
Jack Jansen 6223d48933 Added Popt resource for "dont show console"
Changed SIZE resource to be carbon-compatible.
2001-02-27 23:22:51 +00:00
Jack Jansen 64700c9603 Various tweaks to make it work on MacOSX. 2001-02-27 23:22:02 +00:00
Jack Jansen 0b1f1b5145 - Removed debug
- Make sure splash screens are visible
2001-02-17 23:39:35 +00:00
Jack Jansen cbb5d4972f ConfigurePython now comes in two flavors: ConfigurePythonClassic and ConfigurePythonCarbon, which copy the respective interpreters to PythonInterpreter and rebuild all the applets. This allows MacOS9 users to switch back and forth. 2001-02-17 23:31:48 +00:00
Jack Jansen f3eaf01c23 More modifications to bring the script output in line with the real thing. 2001-02-17 22:00:18 +00:00
Jack Jansen ed24cd2cf7 DialogWindows now have a self.dlg in addition to self.wid. 2001-02-14 17:07:04 +00:00
Jack Jansen 3112bc10ee Also create alias to PythonCoreCarbon.
Got rid of lots of 68k stuff.
2001-02-14 17:04:51 +00:00
Jack Jansen 0eea16633a Adapted unweave to Matthias' fixes. It's still off-by-one-space in some cases. 2001-02-13 22:58:56 +00:00
Jack Jansen 6e27118b72 Added modules _testcapi, _weakref, _symtable. 2001-02-12 14:50:52 +00:00
Jack Jansen 5288c47f6b Added buttons for building interpreter, carbon standalone.
Added modules _testcapi, _weakref, _symtable.
2001-02-12 14:46:53 +00:00
Jack Jansen 5c734e8165 Replaced by :Lib:cfmfile.py. 2001-02-08 13:17:23 +00:00
Jack Jansen 1bbf6ff00f Make balloon code dependent on existence of Help module 2001-01-29 14:59:33 +00:00
Jack Jansen a3e2dcadcc Removed device from the list of Qd incompatibilities. It should be there, but causes too many false positives. 2001-01-29 14:27:32 +00:00
Jack Jansen 5a8115c94b Ported the icglue module to carbon. 2001-01-29 13:27:46 +00:00
Jack Jansen 13735e3e3e Added Help, Scrap and icglue missing methods. 2001-01-29 13:22:29 +00:00
Jack Jansen 41eb3c7dc5 ucnhash module has gone. 2001-01-25 16:28:34 +00:00
Jack Jansen 8c98266a7d Waste and scrap now sort-of work for Carbon. Scrap is mostly empty, and waste uses a mixture between Waste 2.0 and Waste 1.3. 2001-01-24 16:02:07 +00:00
Jack Jansen 131c288484 Build directives for PythonStandalone were missing. 2001-01-24 14:06:35 +00:00
Jack Jansen bace5e9481 Added the GrafPort attributes that are unavailable under Carbon. 2001-01-24 14:06:04 +00:00
Jack Jansen 7b7e713c0d Also build the Carbon extension modules. 2001-01-23 23:19:41 +00:00
Jack Jansen dfebb2786a Ah well, why not check this in. A script to remove all .pyc files in a folder hierarchy. 2001-01-23 22:45:52 +00:00
Jack Jansen c3fc51f61b Added the actual builds of the carbon projects. 2001-01-23 22:36:52 +00:00
Jack Jansen 8c19b882e4 Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it! 2001-01-23 22:36:26 +00:00