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 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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:
  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. setup(name='Akvo',
  16. version='1.0.7',
  17. description='Surface nuclear magnetic resonance workbench',
  18. author='Trevor P. Irons',
  19. author_email='Trevor.Irons@lemmasoftware.org',
  20. url='https://svn.lemmasofware.org/akvo',
  21. #setup_requires=['PyQt5'],
  22. setup_requires=[
  23. # Setuptools 18.0 properly handles Cython extensions.
  24. #'PyQt',
  25. 'pyqt_distutils',
  26. 'PyQt5',
  27. 'setuptools>=18.0',
  28. ],
  29. # ext_modules = cythonise("akvo/tressel/*.pyx"),
  30. # build_requires=['cython'],
  31. install_requires=[
  32. # 'cython',
  33. 'rpy2',
  34. 'matplotlib',
  35. 'scipy',
  36. 'numpy',
  37. 'PyQt5',
  38. 'pyyaml',
  39. 'pandas',
  40. 'pyqt-distutils',
  41. 'cmocean'
  42. ],
  43. packages=['akvo', 'akvo.tressel', 'akvo.gui'],
  44. license=['GPL 4.0'],
  45. entry_points = {
  46. 'console_scripts': [
  47. 'akvo = akvo.gui.akvoGUI:main',
  48. ],
  49. },
  50. #cmdclass = cmdclass,
  51. # for forced build of pyuic
  52. cmdclass={
  53. 'build_ui': build_ui,
  54. 'build_py': custom_build_py,
  55. },
  56. # Mechanism to include auxiliary files
  57. include_package_data=True,
  58. package_data={
  59. 'akvo.gui': ['*.png'] #All .r files
  60. },
  61. )