forked from shawt/piforge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
35 lines (32 loc) · 850 Bytes
/
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
import os, sys, subprocess
from setuptools import setup
from setuptools.command.install import install
class CustomInstall(install):
def run(self):
install.run(self)
print "here is custom command"
subprocess.call(['setupAuto.sh'])
setup (name='piforge',
#you must also change the global ver variable in __main__.py
version='1.4.2',
description='iforge for rPi server component',
url='https://github.com/shawt/piforge',
author='Trevor Shaw',
author_email='[email protected]',
license='MIT',
scripts=['piforge/setupAuto.sh'],
entry_points={
'console_scripts': [
'piforge = piforge.__main__:main'
]
},
packages=['piforge'],
install_requires=[
'web.py',
'RPi.GPIO',
'picamera',
'adafruit-pca9685',
'adafruit-ads1x15',
],
zip_safe=False,
cmdclass={'install': CustomInstall})