##// END OF EJS Templates
Fix python 2 compatibility
Fix python 2 compatibility

File last commit:

r1329:16056ee07511
r1333:ac63616fef28 v3.0.0b2
Show More
setup.py
86 lines | 2.7 KiB | text/x-python | PythonLexer
# 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
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.
"""
import os
from setuptools import setup, Extension
from setuptools.command.build_ext import build_ext as _build_ext
from schainpy import __version__
DOCLINES = __doc__.split("\n")
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())
setup(
name = "schainpy",
version = __version__,
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",
],
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",
],
)