Minifold
Overview
PyBGL is a pure python graph library inspired from the BGL (Boost Graph Library).
For more information, visit the wiki.
Dependencies
Minifold requires Python 3 <http://python.org/>.
For example, under Debian-based distribution, run:
sudo apt-get update sudo apt-get install python3
Installation steps
From sources
- The sources are available on git.
mkdir ~/git cd ~/git git clone https://github.com/nokia/pybgl.git cd pybgl python3 setup.py build sudo python3 setup.py install
Testing
- Test scripts are provided in
tests/directory. - Install
python3-pytest. - Run tests as follows:
cd ~/git/pybgl/tests/ pytest-3
Packaging
Install the packages needed to build .rpm and .deb packages:
python3-setuptoolspython3-stdebfor.debpackagesrpmfor.rpmpackages
For example, under Debian-based distribution, run:
sudo apt-get update sudo apt-get install python3-setuptools python3-stdeb rpm
To build .rpm package (in dist/), run:
cd ~/git/pybgl/tests/ python3 setup.py bdist_rpm
To build .deb package (in deb_dist/), run:
python3 setup.py --command-packages=stdeb.command bdist_deb