If you need to build python-seabreeze from source, follow these steps to install dependencies and compile the package.
Step 1: Install System Dependencies
Linux
Install a compiler and libusb development headers based on your distribution:
- Debian/Ubuntu:
sudo apt-get install git-all build-essential libusb-dev - RPM (Fedora/CentOS):
sudo yum install git-all gcc gcc-c++ make libusb-devel - Arch:
sudo pacman -S base-devel libusb libusb-compat libusb-devel make gcc
OSX
Ensure you have the latest XCode installed.
Windows
Using chocolatey, install the build environment and Windows Driver Kit:
choco install visualcpp-build-tools
choco install windows-sdk-10.1
choco install windowsdriverkit10
Step 2: Prepare pip
Upgrade pip to the latest version:
python -m pip install --upgrade pip
Step 3: Clone and Install
Clone the repository and install using pip:
git clone https://github.com/ap--/python-seabreeze.git python-seabreeze
cd python-seabreeze
python -m pip install .
# Example for Debian/Ubuntu
sudo apt-get install git-all build-essential libusb-dev
# Example for Windows (via Chocolatey)
choco install visualcpp-build-tools
choco install windows-sdk-10.1
choco install windowsdriverkit10
# Final build steps
git clone https://github.com/ap--/python-seabreeze.git python-seabreeze
cd python-seabreeze
python -m pip install .