-
Notifications
You must be signed in to change notification settings - Fork 0
Compile & Install
You have to install the following tools to compile HANA.
- A C++ compiler supports C++11 standards. (GCC >= 4.8.1, MSVC >= 19.0, Clang >= 3.0)
- Python >= 3.6
- CMake >= 2.8
- zlib-devel
You could only use the binaries of HANA. We suggest to use the Python wrapper package for better scalability and reproducibility.
To compile and install HANA binaries, it can be simply run
python hana_install.py -i /path/to/bin
Prepare a directory for CMake (the automated script is cmake_build
directory under the repo dir), cd
to that directory, then run
cmake /path/to/repo
It should generate a series directory under the build directory, the extract
, draft
, partition
, ordering
, orientation
, build
directory contains the binary file with the same name. Rename these binaries with hana_
prefix (e.g. rename extract
to hana_extract
) and copy those binaries to a directory that could be found by operating system. You should be able to run HANA binaries anywhere from terminal.
The Python pipeline supported library can be directly installed from PyPI by
pip install hana_scaffold
Please make sure the installed Python version matched the HANA binaries version. The major version shows the compatible. You should be able to import hana_scaffold
package in Python.
The Python package distributed within the repo is guaranteed to be worked with the binaries.
cd
to the pip_package
directory and run
pip install .
You might have to uninstall the previous version of the package to install the new version. You can uninstall the older package by
pip uninstall hana_scaffold