doc: upd build instructions

Signed-off-by: Alexander Bezzubov <alexander.bezzubov@jetbrains.com>
This commit is contained in:
Alexander Bezzubov 2020-08-12 14:38:56 +02:00
parent 5d58b1aaaf
commit 7ee65cc9d0
2 changed files with 3 additions and 2 deletions

View File

@ -5,7 +5,8 @@ Python bindings through cFFI (API, out-of-line) for calling enry Go functions ex
## Build ## Build
``` ```
$ cd .. && make static $ pushd .. && make static && popd
$ pip install -r requirments.txt
$ python build_enry.py $ python build_enry.py
``` ```

View File

@ -12,7 +12,7 @@ logger = getLogger(__name__)
def build_go_archive(): def build_go_archive():
logger.info("Building C archive with static library") logger.info("Building C archive with static library")
if shutil.which("go") is None: if shutil.which("go") is None:
raise EnvironmentError("You should have go installed and available on your path in order to build this module") raise EnvironmentError("You should have Go installed and available on your path in order to build this module")
subprocess.check_output(["make", "static"], cwd="../") subprocess.check_output(["make", "static"], cwd="../")
logger.info("C archive successfully built") logger.info("C archive successfully built")