setup.py
86 lines
| 2.7 KiB
| text/x-python
|
PythonLexer
|
r1329 | # Copyright (c) 2012-2020 Jicamarca Radio Observatory | ||
# All rights reserved. | ||||
# | ||||
# Distributed under the terms of the BSD 3-clause license. | ||||
"""schainpy is an open source library to read, write and process radar data | ||||
|
r568 | |||
|
r1329 | Signal Chain is a radar data processing library wich includes modules to read, | ||
and write different files formats, besides modules to process and visualize the | ||||
data. | ||||
""" | ||||
|
r568 | |||
|
r1102 | import os | ||
|
r656 | from setuptools import setup, Extension | ||
|
r1026 | from setuptools.command.build_ext import build_ext as _build_ext | ||
|
r1000 | from schainpy import __version__ | ||
|
r1078 | |||
|
r1329 | DOCLINES = __doc__.split("\n") | ||
|
r1026 | class build_ext(_build_ext): | ||
def finalize_options(self): | ||||
_build_ext.finalize_options(self) | ||||
# Prevent numpy from thinking it is still in its setup process: | ||||
__builtins__.__NUMPY_SETUP__ = False | ||||
import numpy | ||||
self.include_dirs.append(numpy.get_include()) | ||||
|
r1286 | setup( | ||
name = "schainpy", | ||||
version = __version__, | ||||
|
r1329 | description = DOCLINES[0], | ||
long_description = "\n".join(DOCLINES[2:]), | ||||
url = "https://github.com/JRO-Peru/schain", | ||||
author = "Jicamarca Radio Observatory", | ||||
author_email = "jro-developers@igp.gob.pe", | ||||
license="BSD-3-Clause", | ||||
classifiers=[ | ||||
"Development Status :: 4 - Beta", | ||||
"Environment :: Console", | ||||
"Intended Audience :: Science/Research", | ||||
"License :: OSI Approved :: BSD License", | ||||
"Operating System :: MacOS :: MacOS X", | ||||
"Operating System :: POSIX :: Linux", | ||||
"Programming Language :: Python :: 2", | ||||
"Programming Language :: Python :: 2.7", | ||||
"Programming Language :: Python :: 3", | ||||
"Programming Language :: Python :: 3.5", | ||||
"Programming Language :: Python :: 3.6", | ||||
"Programming Language :: Python :: 3.7", | ||||
"Topic :: Scientific/Engineering", | ||||
], | ||||
|
r1286 | packages = { | ||
'schainpy', | ||||
'schainpy.model', | ||||
'schainpy.model.data', | ||||
'schainpy.model.graphics', | ||||
'schainpy.model.io', | ||||
'schainpy.model.proc', | ||||
'schainpy.model.utils', | ||||
'schainpy.utils', | ||||
'schainpy.gui', | ||||
'schainpy.cli', | ||||
}, | ||||
package_data = {'': ['schain.conf.template'], | ||||
'schainpy.files': ['*.oga'] | ||||
}, | ||||
include_package_data = False, | ||||
scripts = ['schainpy/gui/schainGUI'], | ||||
entry_points = { | ||||
'console_scripts': [ | ||||
'schain = schainpy.cli.cli:main', | ||||
], | ||||
}, | ||||
cmdclass = {'build_ext': build_ext}, | ||||
ext_modules=[ | ||||
Extension("schainpy.model.data._noise", ["schainc/_noise.c"]), | ||||
], | ||||
setup_requires = ["numpy"], | ||||
install_requires = [ | ||||
"scipy", | ||||
"h5py", | ||||
"matplotlib", | ||||
"pyzmq", | ||||
"fuzzywuzzy", | ||||
"click", | ||||
], | ||||
|
r1113 | ) | ||