Provide compiled binaries of https://github.com/cea-sec/hairgap
Project description
hairgap-binaries
Provide compiled binaries of hairgap under the form of a Python package.
use
python3 -m pip install hairgap-binaries
hairgap-binaries
only provides get_hairgapr
and get_hairgaps
functions that return absolute paths of hairgapr
and hairgaps
.
If there are not available for your architecture (e.g., anything else than Linux x86_64), None
is returned.
import os
from hairgap_binaries import get_hairgapr, get_hairgaps
assert os.path.isfile(get_hairgapr())
assert os.path.isfile(get_hairgaps())
building
Requirements:
- python3 (>= 3.5),
- wheel Python package (in the current virtualenv) for creating the .whl package,
- vagrant with the scp plugin.
# install the scp plugin
vagrant plugin install vagrant-scp
# compile binaries in a Vagrant box
vagrant up centos_8
vagrant scp centos_8:/tmp/hairgap/hairgaps hairgap_binaries/manylinux2014_x86_64-hairgaps
vagrant scp centos_8:/tmp/hairgap/hairgapr hairgap_binaries/manylinux2014_x86_64-hairgapr
vagrant destroy centos_8 --force
# check these binaries on a Debian 9 / CentOS 7 / Xenial / Bionic / Focal
for k in centos_7 debian_9 ubuntu_xenial ubuntu_bionic ubuntu_focal; do
vagrant up $k > /dev/null 2> /dev/null && \
vagrant scp hairgap_binaries/manylinux2014_x86_64-hairgaps $k:/tmp/hairgaps > /dev/null 2> /dev/null && \
vagrant scp hairgap_binaries/manylinux2014_x86_64-hairgapr $k:/tmp/hairgapr > /dev/null 2> /dev/null && \
vagrant ssh $k -c "/tmp/hairgaps -h" 2> /dev/null | grep sender > /dev/null && echo "$k : hairgaps valid" && \
vagrant ssh $k -c "/tmp/hairgapr -h" 2> /dev/null | grep receiver > /dev/null && echo "$k : hairgapr valid" && \
vagrant destroy --force $k > /dev/null 2> /dev/null
done
# generate Python packages
rm -rf dist
python3 setup.py sdist
python3 setup.py bdist_wheel -p manylinux2014_x86_64
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hairgap_binaries-1.0.1.tar.gz
(105.0 kB
view hashes)
Built Distribution
Close
Hashes for hairgap_binaries-1.0.1-py3-none-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd823539ebf1bb4dc2d233f68bda42f0f60c972f6f0ba50d8d70779946395add |
|
MD5 | 0f5b2dd8661a28d5c7b0b417ca80133b |
|
BLAKE2b-256 | 86c2471685b1779909cb2aeffe9652dfba0c655915498d85b921671d81706ada |