Code for the Knowledge Linker project.
Building, Testing, and Installing
To compile the software, first open a terminal and browse to the source code folder. The package can be built using setuptools. Usually you want to build, test, and install all in the same session. To do so, follow the steps below.
A comprehensive suite of tests is available for the core closure API. Nose is the software used to collect, run, and report the results of the test suite. To run it, the simplest way is to use the setuptools script provided with the package:
python setup.py nosetests
If you want to specify options, you can look in
setup.cfg under the
Once the test suite has been executed and no failure has emerged, you can build and install the package. This software includes some C extension modules, which need to be compiled. As mentioned before, the package provides a setuptools script that will perform the necessary steps. You will need to have a C compiler installed on your system. The software has been developed using the GNU C compiler (gcc). No guarantee is given that it will compile using different compilers.
To build and install the package there are two different, equivalent methods, depending on how you manage your python packages. Both will compile the C code, create a package, and copy it into your Python distribution. This last step will copy both libraries and scripts.
Method 1: with the plain setuptools:
python setup.py install
Method 2: with pip:
pip install .
API reference and tutorial are TODO.