File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22Common installation scripts used in multiple products around the Dexter Industries Galaxy of products.
33
44# 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:
512```
6- curl --silent https://raw.githubusercontent. com/DexterInd/script_tools/master/install_script_tools.sh | bash
13+ curl -kL dexterindustries. com/update_tools | bash
714```
15+
16+ # Updating
17+
18+ For updating the package, you can use the same commands describe at the previous section.
Original file line number Diff line number Diff line change 2828 author = "Dexter Industries" ,
2929 url = "http://www.dexterindustries.com/GoPiGo/" ,
3030 py_modules = ['auto_detect_robot' , 'auto_detect_rpi' ],
31- # install_requires=open('requirements.txt').readlines() ,
31+ install_requires = [ 'smbus-cffi' , 'pyserial' ] ,
3232)
Original file line number Diff line number Diff line change @@ -41,13 +41,14 @@ cd $PIHOME/$DEXTER/$LIB/$DEXTER
4141# if not, clone the folder
4242if [ ! -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
4545else
4646 cd $PIHOME /$DEXTER /$LIB /$DEXTER /$SCRIPT
47- sudo git pull --quiet
47+ git pull --quiet
4848fi
4949
5050cd $PIHOME /$DEXTER /$LIB /$DEXTER /$SCRIPT
51- sudo python autodetect_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
5354popd > /dev/null
You can’t perform that action at this time.
0 commit comments