This repository was archived by the owner on Nov 22, 2022. It is now read-only.
generated from navdeep-G/samplemod
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
executable file
·91 lines (73 loc) · 3.88 KB
/
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# -*- coding: utf-8 -*-
# Learn more: https://github.com/kennethreitz/setup.py
from setuptools import setup, find_packages
import subprocess
import sys
import os
import distutils
with open('README.md') as f:
readme = f.read()
with open('LICENSE') as f:
license = f.read()
platform = distutils.util.get_platform()
print("platform: " + platform)
if platform.startswith("macosx"):
subprocess.call([sys.executable, '-m', 'pip', 'install', 'scipy'])
subprocess.call([sys.executable, '-m', 'pip', 'install', 'scikit-image'])
subprocess.call([sys.executable, '-m', 'pip', 'install', 'scikit-learn'])
subprocess.call([sys.executable, '-m', 'pip', 'install', 'ipython'])
subprocess.call([sys.executable, '-m', 'pip', 'install', 'pandas'])
subprocess.call([sys.executable, '-m', 'pip', 'install', 'opencv-python'])
subprocess.call([sys.executable, '-m', 'pip', 'install', '--upgrade', 'pillow'])
subprocess.call([sys.executable, '-m', 'pip', 'install', '--upgrade', 'pip'])
subprocess.call([sys.executable, '-m', 'pip', 'install', '--upgrade', 'setuptools'])
subprocess.call([sys.executable, '-m', 'pip', 'install', '--upgrade', 'wheel'])
subprocess.call([sys.executable, '-m', 'pip', 'install', 'numpy < 1.17'])
subprocess.call([sys.executable, '-m', 'pip', 'install', 'adafruit-circuitpython-gps == 3.3.0'])
subprocess.call([sys.executable, '-m', 'pip', 'install', 'adafruit-blinka == 2.2.0'])
subprocess.call([sys.executable, '-m', 'pip', 'install', 'gps == 3.19'])
subprocess.call([sys.executable, '-m', 'pip', 'install', 'colour'])
subprocess.call([sys.executable, '-m', 'pip', 'install', 'IPython'])
subprocess.call([sys.executable, '-m', 'pip', 'install', 'h5py'])
subprocess.call([sys.executable, '-m', 'pip', 'install', 'tablib'])
subprocess.call([sys.executable, '-m', 'pip', 'install', 'crontab'])
subprocess.call([sys.executable, '-m', 'pip', 'install', 'clint'])
subprocess.call([sys.executable, '-m', 'pip', 'install', 'docopt'])
subprocess.call([sys.executable, '-m', 'pip', 'install', 'Cython'])
subprocess.call([sys.executable, '-m', 'pip', 'install', 'coco == 0.4.0'])
subprocess.call([sys.executable, '-m', 'pip', 'install', 'aea == 0.1.13'])
if platform.startswith("win32"):
pass
#subprocess.call(['rm', '-rf', './_win/'])
#subprocess.call(['git', 'clone', 'git@github.com:philferriere/cocoapi.git', './_win/cocoapi'])
#currentdir = os.getcwd()
#os.chdir('_win/cocoapi/PythonAPI')
#subprocess.call([sys.executable, 'setup.py', 'install'])
#os.chdir(currentdir )
else:
subprocess.call([sys.executable, '-m', 'pip', 'install', 'pycocotools'])
if platform.startswith("win32"):
pass
#subprocess.call([sys.executable, '-m', 'pip', 'install', '--upgrade', 'https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.13.1-py3-none-any.whl'])
else:
subprocess.call([sys.executable, '-m', 'pip', 'install', 'tensorflow == 1.13.1'])
subprocess.call([sys.executable, '-m', 'pip', 'install', 'keras == 2.2.4'])
subprocess.call([sys.executable, '-m', 'pip', 'install', 'PyWavelets'])
if not platform.startswith("win32"):
subprocess.call([sys.executable, '-m', 'pip', 'install', 'shapely == 1.6.4.post2', '--no-dependencies'])
subprocess.call([sys.executable, '-m', 'pip', 'install', 'scikit-image == 0.15.0', '--no-dependencies'])
subprocess.call([sys.executable, '-m', 'pip', 'install', 'imgaug == 0.2.9', '--no-dependencies'])
subprocess.call([sys.executable, '-m', 'pip', 'install', 'imageio == 2.5.0', '--no-dependencies'])
setup(
name='carpark_agent',
version='0.1.0',
description='Fetch.AI parking space detection agent to run on Raspberry Pi',
long_description=readme,
author='Diarmid Campbell',
author_email='diarmid.campbell@fetch.ai',
url='https://github.com/fetchai/carpark_agent',
license=license,
packages=find_packages(),
package_data={'': ['mask_rcnn_coco.h5', 'default_mask_ref.png']},
include_package_data=True
)