frosty Package

frosty Package

compat Module

class frosty.compat.ReprMixin[source]

Bases: object

Mixin for keeping Python 3 compatibility with the models

class frosty.compat.UnicodeMixin[source]

Bases: object

Mixin for keeping Python 3 compatibility with the models

frosty.compat.ignored(*args, **kwds)[source]

Ignore all exceptions within the scope of a context manager.

Example:

>>>filename = “/tmp/does_not_exist.txt” >>>with ignored(OSError, IOError): >>> os.remove(filename)

freezers Module

class frosty.freezers.FREEZER[source]

Bases: object

Constants for selecting appropriate freezers (All resolve to string names if used with str() or unicode())

ALL = set([<class 'frosty.freezers._Py2App'>, <class 'frosty.freezers._CxFreeze'>, <class 'frosty.freezers._Default'>, <class 'frosty.freezers._BbFreeze'>, <class 'frosty.freezers._Py2Exe'>])
BBFREEZE

alias of _BbFreeze

CXFREEZE

alias of _CxFreeze

DEFAULT

alias of _Default

PY2APP

alias of _Py2App

PY2EXE

alias of _Py2Exe

frosty.freezers.resolve_freezer(freezer)[source]

Locate the appropriate freezer given FREEZER or string input from the programmer.

Parameters:freezer – FREEZER constant or string for the freezer that is requested. (None = FREEZER.DEFAULT)
Returns:

includes Module

frosty.includes.build_includes(include_packages, freezer=None, optional=None)[source]

Iterate the list of packages to build a complete list of those packages as well as all subpackages.

Parameters:
  • include_packages – list of package names
  • freezer – The freezer to use (See FREEZER constants)
  • optional – Optional pacakge names to include (will only issue a warning if they don’t exist)
Type:

include_pacakges: list of basestr

Returns:

complete set of package includes