12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- # -*- coding: utf-8 -*-
- import numpy
- from os.path import join, dirname
- from setuptools import Extension, setup
- from Cython.Build import cythonize #must be after setuptools
- #------------------------------------------------------------------------------
- EXT_NAME = 'yaflpy'
- setup_dir = dirname(__file__)
- src_dir = join(setup_dir, 'src')
- ext_dir = join(src_dir, EXT_NAME)
- extensions = [
- Extension(EXT_NAME, [join(ext_dir, EXT_NAME + '.pyx')],
- include_dirs=[numpy.get_include(), src_dir, ext_dir],
- define_macros=[("NPY_NO_DEPRECATED_API", "NPY_1_7_API_VERSION")])
- ]
- #------------------------------------------------------------------------------
- deps = ['Cython', 'numpy', 'scipy', 'setuptools']
- #------------------------------------------------------------------------------
- setup(
- name="yaflpy",
- version = '0.1.0',
- description = ['Yet Another Filtering Library'],
- long_description = open(join(setup_dir, 'Readme.md')).read(),
- long_description_content_type = 'text/markdown',
- license = 'Apache License, Version 2.0',
- license_file = join(setup_dir, 'LICENSE'),
- author = 'anonimous',
- author_email = 'shkolnick-kun@gmail.com',
- url = 'https://github.com/shkolnick-kun/yafl',
- classifiers = [
- 'Development Status :: 3 - Alpha',
- 'Topic :: Software Development :: Embedded Systems',
- 'Intended Audience :: Science/Research',
- 'License :: OSI Approved :: Apache Software License',
- 'Programming Language :: Python :: 3',
- 'Programming Language :: Python :: 3.3',
- 'Programming Language :: Python :: 3.4',
- 'Programming Language :: Python :: 3.5',
- 'Programming Language :: Python :: 3.6',
- 'Programming Language :: Python :: 3.7',
- 'Programming Language :: Python :: 3.8',
- 'Programming Language :: Python :: 3.9',
- ],
- setup_requires=deps,
- install_requires=deps,
- python_requires='>=3',
- platforms = ['any'],
- ext_modules = cythonize(extensions,
- compiler_directives={'language_level' : '3'})
- )
|