-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |