setup.py 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # -*- coding: utf-8 -*-
  2. import numpy
  3. from os.path import join, dirname
  4. from setuptools import Extension, setup
  5. from Cython.Build import cythonize #must be after setuptools
  6. #------------------------------------------------------------------------------
  7. EXT_NAME = 'yaflpy'
  8. setup_dir = dirname(__file__)
  9. src_dir = join(setup_dir, 'src')
  10. ext_dir = join(src_dir, EXT_NAME)
  11. extensions = [
  12. Extension(EXT_NAME, [join(ext_dir, EXT_NAME + '.pyx')],
  13. include_dirs=[numpy.get_include(), src_dir, ext_dir],
  14. define_macros=[("NPY_NO_DEPRECATED_API", "NPY_1_7_API_VERSION")])
  15. ]
  16. #------------------------------------------------------------------------------
  17. deps = ['Cython', 'numpy', 'scipy', 'setuptools']
  18. #------------------------------------------------------------------------------
  19. setup(
  20. name="yaflpy",
  21. version = '0.1.0',
  22. description = ['Yet Another Filtering Library'],
  23. long_description = open(join(setup_dir, 'Readme.md')).read(),
  24. long_description_content_type = 'text/markdown',
  25. license = 'Apache License, Version 2.0',
  26. license_file = join(setup_dir, 'LICENSE'),
  27. author = 'anonimous',
  28. author_email = 'shkolnick-kun@gmail.com',
  29. url = 'https://github.com/shkolnick-kun/yafl',
  30. classifiers = [
  31. 'Development Status :: 3 - Alpha',
  32. 'Topic :: Software Development :: Embedded Systems',
  33. 'Intended Audience :: Science/Research',
  34. 'License :: OSI Approved :: Apache Software License',
  35. 'Programming Language :: Python :: 3',
  36. 'Programming Language :: Python :: 3.3',
  37. 'Programming Language :: Python :: 3.4',
  38. 'Programming Language :: Python :: 3.5',
  39. 'Programming Language :: Python :: 3.6',
  40. 'Programming Language :: Python :: 3.7',
  41. 'Programming Language :: Python :: 3.8',
  42. 'Programming Language :: Python :: 3.9',
  43. ],
  44. setup_requires=deps,
  45. install_requires=deps,
  46. python_requires='>=3',
  47. platforms = ['any'],
  48. ext_modules = cythonize(extensions,
  49. compiler_directives={'language_level' : '3'})
  50. )