Skip to content

Commit 82c0e83

Browse files
committed
small fixes to the setup.py
1 parent eec39d1 commit 82c0e83

File tree

6 files changed

+27
-25
lines changed

6 files changed

+27
-25
lines changed

README.md

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,32 +11,45 @@ This project is available on Github at:
1111
https://github.com/ddetommaso/TobiiProGlasses2_PyCtrl
1212

1313

14-
## Install the package
14+
## Install/Uninstall the package
1515

16-
### Python 2.7
16+
### Using sources
17+
```
18+
git clone https://github.com/ddetommaso/TobiiProGlasses2_PyCtrl.git
19+
cd TobiiProGlasses2_PyCtrl
20+
```
21+
#### Python 2.7
22+
```
23+
python setup.py install
24+
```
1725

26+
#### Python 3.5
1827
```
19-
$ python -m pip install --upgrade tobiiglassesctrl
28+
python3 setup.py install
2029
```
2130

22-
### Python 3.5.x
31+
### Using pip
2332

33+
#### Python 2.7
2434
```
25-
$ python3 -m pip install --upgrade tobiiglassesctrl
35+
python -m pip install --upgrade tobiiglassesctrl
36+
```
37+
#### Python 3.5.x
38+
```
39+
python3 -m pip install --upgrade tobiiglassesctrl
2640
```
2741

28-
## Uninstall the package
29-
30-
### Python 2.7
42+
### Uninstall the package using pip
3143

44+
#### Python 2.7
3245
```
33-
$ python -m pip uninstall tobiiglassesctrl
46+
python -m pip uninstall tobiiglassesctrl
3447
```
3548

36-
### Python 3.5.x
49+
#### Python 3.5.x
3750

3851
```
39-
$ python3 -m pip uninstall tobiiglassesctrl
52+
python3 -m pip uninstall tobiiglassesctrl
4053
```
4154

4255
## Tobii Pro Glasses 2 Connection

examples/calibrate_and_record.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@
1515
# You should have received a copy of the GNU General Public License
1616
# along with this program. If not, see <https://www.gnu.org/licenses/>
1717

18-
import sys
1918
import time
20-
sys.path.append('..')
21-
2219
from tobiiglassesctrl.controller import TobiiGlassesController
2320

2421
if hasattr(__builtins__, 'raw_input'):

examples/connect.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
# You should have received a copy of the GNU General Public License
1616
# along with this program. If not, see <https://www.gnu.org/licenses/>
1717

18-
import sys
19-
sys.path.append('..')
20-
2118
from tobiiglassesctrl.controller import TobiiGlassesController
2219

2320
def main():

examples/live_scene_and_gaze.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,12 @@
1515
# You should have received a copy of the GNU General Public License
1616
# along with this program. If not, see <http://www.gnu.org/licenses/>
1717

18-
import sys
1918
import cv2
2019
import numpy as np
2120

2221
if hasattr(__builtins__, 'raw_input'):
2322
input=raw_input
2423

25-
sys.path.append('..')
2624
from tobiiglassesctrl.controller import TobiiGlassesController
2725

2826
ipv4_address = "192.168.71.50"

examples/streaming.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717

1818
import time
1919
import json
20-
import sys
21-
sys.path.append('..')
22-
2320
from tobiiglassesctrl.controller import TobiiGlassesController
2421

2522

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313

1414
setup(
1515
name='tobiiglassesctrl',
16-
version='2.0-a1',
16+
version='2.0-b1',
1717
description='A Python controller for Tobii Pro Glasses 2',
1818
url='https://github.com/ddetommaso/TobiiProGlasses2_PyCtrl',
19-
download_url='https://github.com/ddetommaso/TobiiProGlasses2_PyCtrl/archive/2.0-a1.tar.gz',
19+
download_url='https://github.com/ddetommaso/TobiiProGlasses2_PyCtrl/archive/2.0-b1.tar.gz',
2020
install_requires=['netifaces'],
2121
author='Davide De Tommaso',
2222
author_email='[email protected]',
2323
keywords=['eye-tracker','tobii','glasses', 'tobii pro glasses 2', 'tobii glasses', 'eye tracking'],
24-
py_modules=["tobiiglassesctrl"],
24+
packages=find_packages(exclude=['examples*']),
2525
classifiers = [
2626
'Programming Language :: Python :: 2.7',
2727
'Programming Language :: Python :: 3.5'

0 commit comments

Comments
 (0)