msl.loadlib.freeze_server32 module

Creates a 32-bit server to use for inter-process communication.

This module must be run from a 32-bit Python interpreter with PyInstaller installed.

If you want to re-freeze the 32-bit server, for example, if you want a 32-bit version of numpy to be available on the server, then run the following with a 32-bit Python interpreter that has the packages that you want to be available on the server installed

>>> from msl.loadlib import freeze_server32
>>> freeze_server32.main()  
msl.loadlib.freeze_server32.main(spec=None, requires_pythonnet=True, requires_comtypes=True, dest=None)[source]

Creates a 32-bit Python server.

Uses PyInstaller to create a frozen 32-bit Python executable. This executable starts a 32-bit server, Server32, which hosts a Python module that can load a 32-bit library.

Changed in version 0.5: Added the requires_pythonnet and requires_comtypes arguments.

Changed in version 0.10: Added the dest argument.

Parameters:
  • spec (str, optional) – The path to a PyInstaller .spec file to use to create the frozen 32-bit server.

  • requires_pythonnet (bool, optional) – Whether Python for .NET must be available on the frozen 32-bit server. This argument is ignored for a non-Windows operating system.

  • requires_comtypes (bool, optional) – Whether comtypes must be available on the frozen 32-bit server. This argument is ignored for a non-Windows operating system.

  • dest (str, optional) – The destination directory to save the server to.