TODO
Project description
Test
cargo run
Crosscompile for the Pi
Setup
# install crosscompiling for raspberry pi
sudo apt-get install arm-linux-gnueabihf-gcc
# add target
rustup target add armv7-unknown-linux-gnueabihf
# copy python sysconfig (required for pyo3 cross compilation)
mkdir lib
scp raveberry.local:/usr/lib/python3.9/_sysconfigdata__arm-linux-gnueabihf.py lib/
export PYO3_CROSS_LIB_DIR=$(pwd)/lib
# for building wheels
pip install maturin
# copy shaders and images to the pi
scp -r raveberry_visualization raveberry.local:
Build
Binary:
# --release to reduce binary size, speeding up scp
cargo build --target armv7-unknown-linux-gnueabihf --release
scp target/armv7-unknown-linux-gnueabihf/release/raveberry-visualization raveberry.local:
Wheel:
# optional: add --release --strip
maturin build --target armv7-unknown-linux-gnueabihf
scp target/wheels/*.whl raveberry.local:
Build
sudo apt-get install python3.8 python3.8-venv python3.9 python3.9-venv python3.10 python3.10-venv
for python in python3.8 python3.9 python3.10; do
rm -rf .venv
$python -m venv .venv
. .venv/bin/activate
pip install setuptools-rust wheel
# plat-name obtained via "auditwheel show <wheel_file>"
python setup.py bdist_wheel --plat-name manylinux_2_27_x86_64
done
# on the pi
pip install setuptools-rust wheel
python setup.py sdist bdist_wheel --plat-name manylinux_2_28_armv7l
# upload
twine upload dist/*
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
Built Distributions
Close
Hashes for raveberry-visualization-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8812a2efca434f9ce51227310931f7335c210746c0cf281b470c7aacbbcdda53 |
|
MD5 | 189d1bc993d288fdf82b12f131d4622f |
|
BLAKE2b-256 | 4049ff96d871dc838ba1b61f509141b616d82b764bd0c49b45fb575bfb9da5c4 |
Close
Hashes for raveberry_visualization-0.1.0-cp310-cp310-manylinux_2_27_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4cc10ad6a8db2c7c2bfba16b40b5c6201d4ac23751d14047e082adcd3db77b7 |
|
MD5 | abce53f0a3b99754669e226f3599d5cf |
|
BLAKE2b-256 | f132b48b4358a28742557a2271161cc2963f33784b9de7834e7aef0cda78b33b |
Close
Hashes for raveberry_visualization-0.1.0-cp39-cp39-manylinux_2_28_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fcad5971630386707e5631e6cd833d807f7fd18ab62cb09491b94e0dd1e92011 |
|
MD5 | f4977cb3278c961c67679b88f64aa58e |
|
BLAKE2b-256 | a1080228fbb5e840c711cffa6b79727ba6a2d81de1047640341cced49286e3ce |
Close
Hashes for raveberry_visualization-0.1.0-cp39-cp39-manylinux_2_27_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0808ad7fd43bd670d75ee485769de7fd393563ce4de568b658f1704454bd9c30 |
|
MD5 | 95a03a4ae01ef1a54edce72084d648df |
|
BLAKE2b-256 | fba60f169c67eb86c3d01c302a453db88d8c429cdb4e9e2af23abeaaa36ef76d |
Close
Hashes for raveberry_visualization-0.1.0-cp38-cp38-manylinux_2_27_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf4d423ebe1e53be839fe400e3a21d027159e5885e8d9080f6e0d9e141668996 |
|
MD5 | 22d7e1d1ba8ed2239a262496f60247e5 |
|
BLAKE2b-256 | 8e3caf57e237b32040e3ac938aaba08c5bb80cb3aabc070271383f1f32f66e3f |