Skip to content

Compile & Install

Saki Tojo edited this page May 12, 2023 · 2 revisions

Dependencies

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

Build and Installation

You could only use the binaries of HANA. We suggest to use the Python wrapper package for better scalability and reproducibility.

HANA Binaries

Automated

To compile and install HANA binaries, it can be simply run

python hana_install.py -i /path/to/bin

Manual

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.

Python Package

From Python Package Index (PyPI)

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.

From the source code.

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