This package deploys CMake and pybind11 to provide a thin Python API on top of a native (e.g. C/C++) code. The libraries are further bundled into a Python package using a provided CMake-aware setup.py
config file.
Windows: Python Git CMake Ninja Visual Studio Community Edition
Visual Studio Installer configuration:
The following additional Python packages must be installed:
pip3 install wheel
Build and install the package using one of the three build options below.
git clone --recurse-submodules https://github.com/apc-llc/arrsin.git
cd arrsin
python3 setup.py bdist_wheel -G Ninja
The resulting .whl
package will be placed into the dist/
folder, and could be installed with pip.
pip3 install git+https://github.com/apc-llc/arrsin.git --user
Prepare the virtual environment:
git clone --recurse-submodules https://github.com/apc-llc/arrsin.git
cd arrsin
python3 -m venv venv
source venv/bin/activate
Install the package with the editable state "-e" option:
pip3 install -e .
This will "alias" the current source folder to the installed package, effectively making the installed package editable directly.
$ PYTHONPATH=$(pwd) python3
>>> import numpy as np
>>> x = np.random.uniform(-1, 1, size=(int(1e8),))
>>> import arrsin
>>> arrsin.arrsin_par(x)