Package animio :: Module setup
[hide private]
[frames] | no frames]

Module setup

source code

Forward the call to mrv's setup routine
Classes [hide private]
  BuildPython
Customize the command preparing python modules in order to skip copying original py files if compile is specified.
  BuildScripts
Uses our way to adjust the first line of the script, additionally rename the executable to indicate the required interpreter.
  Distribution
Customize available options and behaviour to work with mrv and derived projects
  DocDistro
Build the documentation, and include everything into the git repository if required.
  GitSourceDistribution
Instead of creating an archive, we put the source tree into a git repository
  InstallCommand
Assure compilation is done by build_py
  InstallLibCommand
Makes sure the compilation does not happen - if the user wants it, it will only work in the build_py command.
  _GitMixin
Provides functionality to add files and folders within a base directory into the root of a git repository of our choice
  _RegressionMixin
Provides a simple interface allowing to perform a regression test
Functions [hide private]
 
__init__(self, dist)
Okay, its getting interesting: cmd checks for the type of dist - we have derived from it and provide our own type.
source code
 
main(args, distclass=<class 'animio.setup.Distribution'>) source code
    Initialization
 
include_setup_py()
#import mrvs setup.py
source code
Variables [hide private]
  __package__ = 'animio'
Function Details [hide private]

__init__(self, dist)
(Constructor)

source code 
Okay, its getting interesting: cmd checks for the type of dist - we have derived from it and provide our own type. Distribution is an oldstyle class which doesn't even work with isinstance - to workaround this, we derive from object as well. In the moment we call __init__ on the BaseDistribution part of our instance, it claims not to be an instance of type Distribution(Base) anymore. Something is fishy here. As a workaround, we get rid of the typecheck in the command base.