Skip to content

Commit

Permalink
Add rpi4 distribution build
Browse files Browse the repository at this point in the history
  • Loading branch information
deufrai committed Apr 30, 2020
1 parent 965fc7d commit 3fffe27
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
35 changes: 35 additions & 0 deletions ci/build_dist_rpi4.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# this script builds a full dsitribution on a RPI4
#
# BEWARE : this is still experimental
#
# USAGE : MUST be called from the top of als sources dir
#
#######################################################################
set -e

if [ ! -d venv ]
then
python3 -m venv --system-site-packages venv
fi

. venv/bin/activate

pip install --upgrade pip
pip install --upgrade wheel

patch < ci/rpi4_requirements.patch
pip install -I -r requirements.txt

python setup.py develop

VERSION=$(grep __version__ src/als/__init__.py | tail -n1 | cut -d'"' -f2)

if [ -z "${VERSION##*"dev"*}" ] ;then
VERSION=${VERSION}-$(git rev-parse --short HEAD)
fi

pyinstaller -n als-${VERSION} --windowed --hidden-import='pkg_resources.py2_warn' src/als/main.py

cd dist

tar zcf als-${VERSION}.tgz als-${VERSION}
13 changes: 13 additions & 0 deletions ci/rpi4_requirements.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/requirements.txt b/requirements.txt
index 0096989..ad5d1fd 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -2,8 +2,6 @@ astroalign==1.0.4
astropy==4.0.1.post1
dtcwt==0.12.0
numpy==1.16.4
-opencv-python==4.1.0.25
-PyQt5==5.13.0
pywi==0.3.dev12
qimage2ndarray==1.8
rawpy==0.13.1

0 comments on commit 3fffe27

Please sign in to comment.