lcx: 2020/01/06
This is a quick tutorial example to show how a python package is built.
- Structure of the package;
- Necessary files: setup.py, _init.py_.
- Specially, one needs to pay attention to the code in__init.py__.
from .Gaussiandistribution import Gaussian
With this line in _init.py_, one can use
from distribution import Gaussian
to import Gassian directly. Otherwise,
from distribution..Gaussiandistribution import Gaussian