|
1 | 1 | from setuptools import setup, find_packages |
2 | | -import os |
| 2 | +import os,sys |
3 | 3 |
|
4 | 4 | def read(fname): |
5 | 5 | with open(os.path.join(os.path.dirname(__file__), fname)) as f: |
6 | 6 | return f.read() |
7 | | -exclude=[] |
8 | 7 |
|
9 | | -setup(name="learnbot_components", |
10 | | - version="0.0.3", |
11 | | - description="learnbot_components contains some components to install in learnbot robot.", |
12 | | - author="Ivan Barbecho", |
13 | | - author_email="ivanbd@unex.es", |
14 | | - url="https://github.com/robocomp/learnbot/tree/version-2-component-pip", |
15 | | - license="GPL", |
16 | | - scripts=[ |
17 | | - 'learnbot_components/baserobot/src/baserobot.py', |
18 | | - 'learnbot_components/camera/camera.py', |
19 | | - 'learnbot_components/display/src/display.py', |
20 | | - 'learnbot_components/emotionalMotor/src/emotionalMotor.py', |
21 | | - 'learnbot_components/jointMotor/src/jointMotor.py', |
22 | | - 'learnbot_components/laser/src/laser.py', |
23 | | - ], |
24 | | - packages=find_packages(exclude=exclude), |
25 | | - include_package_data=True, |
26 | | - package_data={'':["*"]}, |
27 | | - zip_safe=False, |
28 | | - long_description=read('learnbot_components/description.md'), |
29 | | - long_description_content_type='text/markdown', |
30 | | - install_requires=[ |
31 | | - 'matplotlib==2.2.2', |
32 | | - 'opencv_python_headless==3.4.3.18', |
33 | | - 'scipy==1.0.0', |
34 | | - 'tensorflow==1.10.1', |
35 | | - 'pandas==0.19.1', |
36 | | - 'Keras==2.0.5', |
37 | | - 'h5py==2.7.0', |
38 | | - 'epitran==0.4', |
39 | | - 'numpy==1.13.3', |
40 | | - 'Adafruit-PCA9685==1.0.1', |
41 | | - 'ice==0.0.2', |
42 | | - 'PySide==1.2.4', |
43 | | - 'paho_mqtt==1.4.0', |
44 | | - 'picamera==1.13', |
45 | | - 'wiringpi==2.46.0', |
46 | | - 'wiringpi2==2.32.3'], |
47 | | - ) |
| 8 | +if sys.version_info[0] == 2: |
| 9 | + setup(name="learnbot_dsl", |
| 10 | + version="0.1.19", |
| 11 | + description="Learnblock is a IDE for program learnbot using blocks", |
| 12 | + author="Ivan Barbecho", |
| 13 | + author_email="ivanbd@unex.es", |
| 14 | + url="https://github.com/robocomp/learnbot", |
| 15 | + license="GPL", |
| 16 | + scripts=[ |
| 17 | + 'learnbot_dsl/learnbotCode/Learnblock', |
| 18 | + 'learnbot_dsl/components/apriltag/src/aprilTag.py', |
| 19 | + 'learnbot_dsl/components/emotionrecognition2/src/emotionrecognition2.py'], |
| 20 | + packages=find_packages(where=".", exclude=['learnbot_components*']), |
| 21 | + include_package_data=True, |
| 22 | + package_data={'':["*"], 'learnbot_dsl':["*", "interfaces/*","*.md"]}, |
| 23 | + zip_safe=False, |
| 24 | + long_description=read('learnbot_dsl/description.md'), |
| 25 | + long_description_content_type='text/markdown', |
| 26 | + install_requires=[ |
| 27 | + "requests", |
| 28 | + "pyunpack", |
| 29 | + "patool", |
| 30 | + "opencv-python-headless==3.4.3.18", |
| 31 | + # 'numpy==1.14.5', |
| 32 | + 'matplotlib==2.2.2', |
| 33 | + # 'pyparsing==2.0.3', |
| 34 | + 'imutils==0.5.1', |
| 35 | + 'six==1.10.0', |
| 36 | + 'scipy==1.0.0', |
| 37 | + 'tensorflow==1.10.1', |
| 38 | + 'dlib==19.13.1', |
| 39 | + 'pandas==0.19.1', |
| 40 | + 'paramiko==2.4.1', |
| 41 | + 'Keras==2.0.5', |
| 42 | + 'h5py==2.7.0', |
| 43 | + 'epitran==0.4', |
| 44 | + # 'zeroc-ice==3.6.0', |
| 45 | + 'Pillow==5.3.0', |
| 46 | + # 'PySide', |
| 47 | + 'GitPython==2.1.11', |
| 48 | + 'paho_mqtt==1.4.0'], |
| 49 | + ) |
| 50 | +elif sys.version_info[0] == 3: |
| 51 | + setup(name="learnbot_components", |
| 52 | + version="0.0.3", |
| 53 | + description="learnbot_components contains some components to install in learnbot robot.", |
| 54 | + author="Ivan Barbecho", |
| 55 | + author_email="ivanbd@unex.es", |
| 56 | + url="https://github.com/robocomp/learnbot/tree/version-2-component-pip", |
| 57 | + license="GPL", |
| 58 | + scripts=[ |
| 59 | + 'learnbot_components/baserobot/src/baserobot.py', |
| 60 | + 'learnbot_components/camera/camera.py', |
| 61 | + 'learnbot_components/display/src/display.py', |
| 62 | + 'learnbot_components/emotionalMotor/src/emotionalMotor.py', |
| 63 | + 'learnbot_components/jointMotor/src/jointMotor.py', |
| 64 | + 'learnbot_components/laser/src/laser.py', |
| 65 | + ], |
| 66 | + packages=find_packages(where=".", exclude=['learnbot_dsl*']), |
| 67 | + include_package_data=True, |
| 68 | + package_data={'':["*"]}, |
| 69 | + zip_safe=False, |
| 70 | + long_description=read('learnbot_components/description.md'), |
| 71 | + long_description_content_type='text/markdown', |
| 72 | + install_requires=[ |
| 73 | + 'matplotlib==2.2.2', |
| 74 | + 'opencv_python_headless==3.4.3.18', |
| 75 | + 'scipy==1.0.0', |
| 76 | + 'tensorflow==1.10.1', |
| 77 | + 'pandas==0.19.1', |
| 78 | + 'Keras==2.0.5', |
| 79 | + 'h5py==2.7.0', |
| 80 | + 'epitran==0.4', |
| 81 | + 'numpy==1.13.3', |
| 82 | + 'Adafruit-PCA9685==1.0.1', |
| 83 | + 'ice==0.0.2', |
| 84 | + 'PySide==1.2.4', |
| 85 | + 'paho_mqtt==1.4.0', |
| 86 | + 'picamera==1.13', |
| 87 | + 'wiringpi==2.46.0', |
| 88 | + 'wiringpi2==2.32.3'], |
| 89 | + ) |
0 commit comments