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.

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.2.7',
  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. ],
  48. packages=['akvo', 'akvo.tressel', 'akvo.gui','akvo.lemma'],
  49. license=['GPL 4.0'],
  50. entry_points = {
  51. 'console_scripts': [
  52. 'akvo = akvo.gui.akvoGUI:main',
  53. ],
  54. },
  55. #cmdclass = cmdclass,
  56. # for forced build of pyuic
  57. cmdclass={
  58. 'build_ui': build_ui,
  59. 'build_py': custom_build_py,
  60. },
  61. # Mechanism to include auxiliary files
  62. include_package_data=True,
  63. package_data={
  64. 'akvo.gui': ['*.png'], #All .r files
  65. 'akvo.lemma': ['pyLemmaCore.so']
  66. },
  67. classifiers=[
  68. "Programming Language :: Python :: 3",
  69. "License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
  70. "Operating System :: OS Independent",
  71. ],
  72. )