Surface NMR processing and inversion GUI
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

setup.py 2.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. #!/usr/bin/env python
  2. # Requires PyQt5 and compiltion of GUI files via pyuic
  3. from setuptools import setup, Extension
  4. from setuptools.command.build_py import build_py
  5. try:
  6. from pyqt_distutils.build_ui import build_ui
  7. except ImportError:
  8. print("Please install pyqt_distutils")
  9. print( "(sudo) pip(3) install pyqt-distutils")
  10. exit()
  11. class custom_build_py(build_py):
  12. def run(self):
  13. self.run_command('build_ui')
  14. build_py.run(self)
  15. with open("README.md", "r") as fh:
  16. long_description = fh.read()
  17. setup(name='Akvo',
  18. version='1.3.0',
  19. description='Surface nuclear magnetic resonance workbench',
  20. long_description=long_description,
  21. long_description_content_type='text/markdown',
  22. author='Trevor P. Irons',
  23. author_email='Trevor.Irons@lemmasoftware.org',
  24. url='https://akvo.lemmasoftware.org/',
  25. #setup_requires=['PyQt5'],
  26. setup_requires=[
  27. # Setuptools 18.0 properly handles Cython extensions.
  28. #'PyQt',
  29. 'pyqt_distutils',
  30. 'PyQt5',
  31. 'setuptools>=18.0',
  32. ],
  33. # ext_modules = cythonise("akvo/tressel/*.pyx"),
  34. # build_requires=['cython'],
  35. install_requires=[
  36. # 'cython',
  37. # 'rpy2',
  38. 'matplotlib',
  39. 'scipy',
  40. 'numpy',
  41. 'pyqt5',
  42. 'pyyaml',
  43. 'ruamel.yaml',
  44. 'pandas',
  45. 'pyqt-distutils',
  46. 'cmocean',
  47. 'pyLemma=0.0.9'
  48. ],
  49. packages=['akvo', 'akvo.tressel', 'akvo.gui','akvo.lemma'],
  50. license=['GPL 4.0'],
  51. entry_points = {
  52. 'console_scripts': [
  53. 'akvo = akvo.gui.akvoGUI:main',
  54. ],
  55. },
  56. #cmdclass = cmdclass,
  57. # for forced build of pyuic
  58. cmdclass={
  59. 'build_ui': build_ui,
  60. 'build_py': custom_build_py,
  61. },
  62. # Mechanism to include auxiliary files
  63. include_package_data=True,
  64. package_data={
  65. 'akvo.gui': ['*.png'], #All .r files
  66. 'akvo.lemma': ['pyLemmaCore.so']
  67. },
  68. classifiers=[
  69. "Programming Language :: Python :: 3",
  70. "License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
  71. "Operating System :: OS Independent",
  72. ],
  73. )