Skip to content

Commit 0130ddd

Browse files
committed
merge
2 parents 1cd2b3a + 531fc63 commit 0130ddd

4 files changed

Lines changed: 22 additions & 8 deletions

File tree

README.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
1-
# script_tools
1+
# Description
22
Common installation scripts used in multiple products around the Dexter Industries Galaxy of products.
33

4-
# to install:
5-
curl --silent https://raw.githubusercontent.com/DexterInd/script_tools/master/install_script_tools.sh | bash
4+
# Installing
5+
6+
For installing the python packages of `script_tools` with root privileges (except for anything else than comes with it), use the following command:
7+
```
8+
sudo sh -c "curl -kL dexterindustries.com/update_tools | bash"
9+
```
10+
11+
For installing the python packages of `script_tools` without root privileges (except for anything else than comes with it), use the following command:
12+
```
13+
curl -kL dexterindustries.com/update_tools | bash
14+
```
15+
16+
# Updating
17+
18+
For updating the package, you can use the same commands describe at the previous section.

auto_detect_rpi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969

7070
"900093" : ["Pi Zero v1.3", "RPI0"],
7171

72-
"0x9000C1" : ["Pi Zero W", "RPI0"],
72+
"9000C1" : ["Pi Zero W", "RPI0"],
7373

7474
"a02082" : ["Pi 3 Model B", "RPI3"],
7575
"a22082" : ["Pi 3 Model B", "RPI3"],

install_script_tools.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,14 @@ cd $PIHOME/$DEXTER/$LIB/$DEXTER
4141
# if not, clone the folder
4242
if [ ! -d $SCRIPT ] ; then
4343
# clone the folder
44-
sudo git clone --quiet https://github.com/DexterInd/script_tools.git
44+
git clone --quiet https://github.com/DexterInd/script_tools.git
4545
else
4646
cd $PIHOME/$DEXTER/$LIB/$DEXTER/$SCRIPT
47-
sudo git pull --quiet
47+
git pull --quiet
4848
fi
4949

5050
cd $PIHOME/$DEXTER/$LIB/$DEXTER/$SCRIPT
51-
sudo python setup.py install
51+
sudo apt-get install build-essential libi2c-dev i2c-tools python-dev libffi-dev -y
52+
python autodetect_setup.py install
5253

5354
popd > /dev/null

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@
2828
author="Dexter Industries",
2929
url="http://www.dexterindustries.com/GoPiGo/",
3030
py_modules=['auto_detect_robot', 'auto_detect_rpi', 'i2c_mutex'],
31-
#install_requires=open('requirements.txt').readlines(),
31+
install_requires=['smbus-cffi', 'pyserial'],
3232
)

0 commit comments

Comments
 (0)