(LOGO.JPG) Python for OpenVMS

(go to: table of contents, index, prev: configuration: module methods, next: changes to Python modules)

The Python distribution contains an embedding example in the [.DEMO.EMBED] directory. This has been copied to [.VMS.DEMO.EMBED] and adapted for the OpenVMS environment.

This section gives some more hints.


Comments about some files:

BUILD_DEMO.COM
This file contains code copied and updated from [.VMS]DCC.COM and LINK_PY.COM. It is used to turn DEMO.C into DEMO_VAX.EXE or DEMO_ALPHA.EXE.

DEMO.C
Copied from [.DEMO.EMBED].

DEMO_DCL_VAX.MAP or DEMO_DCL_ALPHA.MAP
Map file from the link process.

DEMO_VAX.EXE or DEMO_ALPHA.EXE
Resulting executables.

DEMO_VAX.OBJ or DEMO_ALPHA.OBJ

The demo is linked against the full interpreter and all of its extension modules which creates a big '.EXE' file! You need to execute the procedure PYTHON_VMS:SETUP.COM before calling BUILD_DEMO.COM to pick up the right object libraries.

If this isn't wanted then it is possible to copy [.VMS]CONFIG.DAT to [.VMS.DEMO.EMBED] and modify it according to the instructions in 'configuration: builtin modules'. The new object module should be stored here, too.

Finally, BUILD_DEMO.COM need be updated to link against the new version of CONFIG_INITTAB.OBJ.


(go to: table of contents, index, prev: configuration: module methods, next: changes to Python modules)

26-FEB-2000 ZE.