Location: OpenVMS/cpython27/vms/link_py.com

1.9 KiB
application/x-msdos-program
Jean-Francois Pieronne
Use SQLITE3 shareable
$ set def python_root:[vms]
$
$ ARCH_NAME = F$EDIT(F$GETSYI("ARCH_NAME"),"UPCASE")
$
$ if f$trnlnm("python_use_tcpip_v6")
$ then
$ python_use_tcpip_v6 = 1
$ else
$ python_use_tcpip_v6 = 0
$ endif
$
$! Add BSD Version 4.4 Sockets object library
$ if python_use_tcpip_v6 .eq. 1
$ then
$ @add_library TCPIP$LIBRARY:TCPIP$LIB.OLB LIB
$ endif
$
$! Add LIBFFI library
$ @add_library SYS$COMMON:[libffi]ffisrc.olb LIB
$ if ARCH_NAME .eqs. "IA64"
$ then
$ @add_library SYS$COMMON:[libffi]ffi_IA64.olb LIB
$ else
$ @add_library SYS$COMMON:[libffi]ffi_Alpha.olb LIB
$ endif
$
$! Add SQLITE3 library
$ if ARCH_NAME .eqs. "IA64"
$ then
$ @add_library SQLITE3_SHR SHARE
$ else
$ @add_library SQLITE3_SHR SHARE
$ endif
$
$ if (f$search("PYOBJECT_DIR:python.olb") .eqs. "") then -
library/create PYOBJECT_DIR:python.olb
$ library/replace PYOBJECT_DIR:python.olb PYOBJECT_DIR:*.obj
$
$ if (f$search("PYOBJECT_DIR:local_modules.olb") .nes. "") then -
delete PYOBJECT_DIR:local_modules.olb;*
$
$ if (f$search("PYOBJECT_DIR:local_modules.olb") .eqs. "") then -
library/create PYOBJECT_DIR:local_modules.olb
$ if (f$search("PYOBJECT_PYVMSDIR:*.obj") .nes. "") then -
library/replace PYOBJECT_DIR:local_modules.olb PYOBJECT_PYVMSDIR:*.obj
$
$ @python_vms:build_config_inittab.com
$
$ link/map/full/section/share=python_root:[vms.lib]pythonshr.exe 'p1' -
pythonshr.opt/opt
$
$! link/threads_enable=(multiple,upcalls)/map/full/exe=python_root:[vms.bin]python.exe 'p1' -
$ ! upcalls seem to have some problem on IA64 8.3
$ link/threads_enable=(multiple)/map/full/exe=python_root:[vms.bin]python.exe 'p1' -
python.opt/opt
$ link/map/full/exe=python_root:[vms.bin]python_nothread.exe 'p1' -
python.opt/opt
$
$ set prot=w:re python_root:[vms.lib]pythonshr.exe
$ set prot=w:re python_root:[vms.bin]python.exe
$ set prot=w:re python_root:[vms.bin]python_nothread.exe