diff --git a/Mac/Demo/plugins.html b/Mac/Demo/plugins.html index 368f50be529..a49da68b179 100644 --- a/Mac/Demo/plugins.html +++ b/Mac/Demo/plugins.html @@ -7,28 +7,25 @@
+modem connection. The actual example does not work anymore, as both +MacTCP and Interslip died long ago, but the text is still mostly +correct.
-Next, you need a python source
-distribution. For PowerPC and cfm68k development you can actually
-get by without a full source distribution, using the Development
-distribution. You'll also need a functional python interpreter, and
-the Modulator program (which lives in Tools:Modulator
in
-the standard source distribution). You may also find that Guido's Extending and embedding
the Python interpreter is a very handy piece of documentation. I
will skip lots of details that are handled there, like complete
@@ -155,70 +152,36 @@
-
- extern void initinterslip();
-
-here. Further down the file there is an array that is initialized with
-modulename/initfunction pairs. Add a line of the form
-
- {"interslip", initinterslip},
-
-here. You may want to bracket these two lines with
-
- #ifdef USE_INTERSLIP
- #endif
-
-lines, that way you can easily control whether the module is
-incorporated into python at compile time. If you decide to do the
-latter edit your config file (you can find the name in the "C/C++
-language" section of the MW preferences dialog, it will probably be
-"mwerks_nonshared_config.h") and add a
-
- #define USE_INTERSLIP
-
-
-Make the new interpreter and check that you can import the module, see
-the methods (with "dir(interslip)") and call them. -
+The easiest way to build a plugin module is to use the distutils package, +this works fine on MacOS with CodeWarrior. See the distutils documentation +for details. Keep in mind that even though you are on the Mac you specify +filenames with Unix syntax: they are actually URLs, not filenames. +
-Go to the "PlugIns" folder and copy the files xx.prj, -and xx.prj.exp to interslipmodule.prj and -interslipmodule.prj.exp, respectively. Edit -interslipmodule.prj.exp and change the name of the exported routine -"initxx" to "initinterslip". Open interslipmodule.prj with CodeWarrior, +Alternatively you can build the project file by hand. +Go to the ":Mac:Build" folder and copy the files xx.carbon.mcp, +and xx.carbon.mcp.exp to interslipmodule.carbon.mcp and +interslipmodule.carbon.mcp.exp, respectively. Edit +interslipmodule.carbon.mcp.exp and change the name of the exported routine +"initxx" to "initinterslip". Open interslipmodule.carbon.mcp with CodeWarrior, remove the file xxmodule.c and add interslipmodule.c and make a number of adjustments to the preferences:
PythonCore
. The installation process has deposited this
+a file PythonCoreCarbon
. The installation process has deposited this
file in the System Extensions
folder under the name
-PythonCore version
. Add that file to the project, replacing
-PythonCore
.
+PythonCoreCarbon version
. Add that file to the project, replacing
+PythonCoreCarbon
.
++Next, compile and link your module, fire up python and test it.