(LOGO.JPG) Python for OpenVMS

(go to: table of contents, index, prev: configuration: components, next: configuration: module methods)


builtin modules

The list of Python's builtin modules has been historically defined by a 'C' structure in file CONFIG.C.

Since version 1.5.2-V004 this file has been replaced by a data file (CONFIG.DAT). This are the steps:

Example:
    $ edit CONFIG.DAT
      ...
    $ @ PYTHON_VMS:CONFIG_INITTAB2MAR.COM  CONFIG.DAT  "D"
    $ directory CONFIG;

    Directory PYTHON_DISK:[PYTHON.PYTHON-1_5_2.VMS]

    CONFIG.C_;1         CONFIG.DAT;2

    Total of 2 files.
    $

    $ @ PYTHON_VMS:BLDRUN  VMS_MACRO  CONFIG_INITTAB
    %MACRO_VMS-I-COMPILE, module: CONFIG_INITTAB
    $ directory CONFIG*;

    Directory PYTHON_DISK:[PYTHON.PYTHON-1_5_2.VMS]

    CONFIG.C_;1         CONFIG.DAT;2        CONFIG.OPT;1
    CONFIG_INITTAB.MAR;1                    CONFIG_INITTAB2MAR.COM;2

    Total of 5 files.
    $

    $ @ LINK_PY
    ----------------------------------------------------------------
    %LINK_PY-I-LINKPRG, linking program PYTHON_VAX.EXE
    $

    $ directory PYTHON_*.EXE;

    Directory PYTHON_DISK:[PYTHON.PYTHON-1_5_2.VMS]

    PYTHON_VAX.EXE;1

    Total of 1 file.
    $
The file 'CONFIG.C' is no longer used and can be deleted after its contents have been merged with those of CONFIG.DAT.

format of CONFIG.DAT

A comment is started by the "!" character. It must be in column 1 on a comment-only line.

A ";" in column 1 is also treated as a comment, however the entire line is also copied to the output '.MAR' file where it is used as a comment as well.

column 1
The module name as seen inside Python.
Mixed case is allowed. One or more SPACE characters delimit this column from the next one.

column 2
Name of the initialization routine for this module. Some internal routines have 'NULL' here, which is translated to a NULL pointer.
Mixed case is allowed, but is currently not used on OpenVMS. One or more SPACE characters delimit this column from the next one.

column 3
configuration indicator
This is validated against input parameter 2 to procedure CONFIG_INITTAB2MAR.COM. The "D" means "DCL environment", the "P" means "POSIX" environment, "T" is for threading support. ALL characters must be specified together as parameter 2.

E. g.: for threading support in the DCL environment the following call has to be done:

    $ @ PYTHON_VMS:CONFIG_INITTAB2MAR.COM  CONFIG.DAT  "DT"
  
column 4
linker option
Data from this column goes into file "CONFIG.OPT". Look for a column that contains the string "zlib" as an example.

There must not be a SPACE character in this column!

The list is terminated by a line containing '0 0'.
(go to: table of contents, index, prev: configuration: components, next: configuration: module methods)

09-MAY-2000 ZE.