2018-03-25 15:00:04 +00:00
from setuptools import setup
from setuptools . command . install import install
import os
class PostInstall ( install ) :
def run ( self ) :
install . run ( self )
2018-03-25 18:04:52 +00:00
#os.system('cosmicpi-postinstall')
2018-03-25 15:00:04 +00:00
setup ( name = ' cosmicpi ' ,
version = ' 1.5.2 ' ,
description = ' Open source cosmic ray detector ' ,
long_description = ' The Cosmic Pi project aims to build the world \' s largest open source distributed cosmic ray telescope. You too can be a part of the project, by becoming a Cosmic Pixel! ' ,
2018-03-25 18:04:52 +00:00
platforms = [ ' noarch ' ] ,
2018-03-25 15:00:04 +00:00
maintainer = ' Cosmic Pi Team ' ,
maintainer_email = ' info@cosmicpi.org ' ,
url = ' http://cosmicpi.org/ ' ,
license = ' GPL V2 ' ,
packages = [
' cosmicpi ' ,
' cosmicpi.rest ' ,
' cosmicpi.storage ' ,
' cosmicpi.ui ' ,
] ,
2018-03-25 18:04:52 +00:00
package_data = {
' cosmicpi.ui ' : [ ' dist/* ' , ' index.html ' ] ,
' cosmicpi.storage ' : [ ' cosmicpi.sqlite3 ' ] ,
} ,
2018-03-25 15:00:04 +00:00
data_files = [
2018-03-25 18:04:52 +00:00
( ' /etc/systemd/system/ ' , [ ' data_files/*.service ' ] ) ,
2018-03-25 15:00:04 +00:00
( ' /etc ' , [ ' data_files/cosmicpi.config ' ] ) ,
] ,
install_requires = [
' numpy ' ,
' matplotlib ' ,
' flask ' ,
' configparser ' ,
' pyserial ' ,
2018-03-25 15:28:57 +00:00
' flask_restful ' ,
' flask_cors ' ,
2018-03-25 15:00:04 +00:00
] ,
scripts = [
' bin/cosmicpi-dbcleaner ' ,
' bin/cosmicpi-detector ' ,
' bin/cosmicpi-mqtt ' ,
' bin/cosmicpi-rest ' ,
' bin/cosmicpi-ui ' ,
' bin/cosmicpi-postinstall ' ,
] ,
cmdclass = {
' install ' : PostInstall ,
} ,
)