magmap.io.packaging module

Provide utilities for packaging the application.

magmap.io.packaging.get_pkg_egg(name, prefix=None)[source]

Get package egg-info path.

Parameters:
  • name (str) – Package name.

  • prefix (str) – Start of output path; defaults to None.

Returns:

The egg-info path and output path for the given package.

Return type:

str, str

magmap.io.packaging.get_pkg_path(name, prefix=None)[source]

Get path to the installed package.

Parameters:
  • name (str) – Package name.

  • prefix (str) – Start of output path; defaults to None.

Returns:

The package path and output path for the given package.

Return type:

str, str