Skip to content

Commit

Permalink
fix: version error
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnchainw committed Jul 19, 2024
1 parent c4db397 commit dc72818
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
4 changes: 2 additions & 2 deletions rockpi-penta/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: rockpi-penta
Version: 0.2
Version: 0.2.1
Architecture: all
Maintainer: Radxa <[email protected]>
Depends: python3, python3-libgpiod, python3-pillow, python3-pip
Depends: python3, python3-libgpiod, python3-pillow, python3-pip, python3-dev
Section: utils
Priority: optional
Homepage: https://github.com/radxa/rockpi-penta
Expand Down
6 changes: 4 additions & 2 deletions rockpi-penta/DEBIAN/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ armbian_require_overlay() {
fi
}

requirement_path="/usr/bin/rockpi-penta"

if [ "$(python3 -c 'import sys; print(f"{sys.version_info.minor >= 11}")')" = "True" ]; then
pip3 install adafruit-circuitpython-ssd1306 --break-system-packages
pip3 install -r $requirement_path --break-system-packages
else
pip3 install adafruit-circuitpython-ssd1306
pip3 install -r $requirement_path
fi

systemctl enable rockpi-penta.service
Expand Down
13 changes: 13 additions & 0 deletions rockpi-penta/usr/bin/rockpi-penta/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Adafruit-Blinka==8.39.0
adafruit-circuitpython-busdevice==5.2.9
adafruit-circuitpython-connectionmanager==3.1.1
adafruit-circuitpython-framebuf==1.6.5
adafruit-circuitpython-requests==4.1.4
adafruit-circuitpython-ssd1306==2.12.17
adafruit-circuitpython-typing==1.10.3
Adafruit-PlatformDetect==3.72.1
Adafruit-PureIO==1.1.11
pyftdi==0.55.4
pyserial==3.5
pyusb==1.2.1
typing-extensions==4.12.2

0 comments on commit dc72818

Please sign in to comment.