-
Notifications
You must be signed in to change notification settings - Fork 24
/
learnbot_components_setup.py
executable file
·50 lines (50 loc) · 2.05 KB
/
learnbot_components_setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
from setuptools import setup, find_packages
import os,sys, shutil
def read(fname):
with open(os.path.join(os.path.dirname(__file__), fname)) as f:
return f.read()
def readVersion(fname):
with open(fname,'rb') as f:
for l in f.readlines():
if '__version__' in l:
return l.split("=")[-1].replace("'","").replace(" ","")
setup(name="learnbot_components",
version=readVersion(os.path.join(os.path.dirname(__file__),"learnbot_components","__init__.py")),
description="learnbot_components contains some components to install in learnbot robot.",
author="Ivan Barbecho",
author_email="[email protected]",
url="https://github.com/robocomp/learnbot/tree/version-2-component-pip",
license="GPL",
scripts=[
'learnbot_components/baserobot/src/baserobot.py',
'learnbot_components/camera/camera.py',
'learnbot_components/display/src/display.py',
'learnbot_components/emotionalMotor/src/emotionalMotor.py',
'learnbot_components/jointMotor/src/jointMotor.py',
'learnbot_components/laser/src/laser.py',
'learnbot_components/startComponents',
],
packages=find_packages(where=".", exclude=['learnbot_dsl*']),
include_package_data=True,
package_data={'':["*"]},
zip_safe=False,
long_description=read('learnbot_components/description.md'),
long_description_content_type='text/markdown',
python_requires='!=2.*, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4',
install_requires=[
'matplotlib==2.2.2',
'epitran==0.4',
'opencv_python_headless==3.4.3.18',
'numpy==1.13.3',
'Adafruit_PCA9685==1.0.1',
'ice==0.0.2',
'PySide==1.2.4',
'learnbot_components==0.0.3',
'paho_mqtt==1.4.0',
'picamera==1.13',
'wiringpi==2.46.0',
'wiringpi2'],
)
if os.path.exists("build.learnbot_components"):
shutil.rmtree("build.learnbot_components")
shutil.move("build", 'build.learnbot_components')