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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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.5',
  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. 'pyqt-distutils',
  40. 'cmocean'
  41. ],
  42. packages=['akvo', 'akvo.tressel', 'akvo.gui'],
  43. license=['GPL 4.0'],
  44. entry_points = {
  45. 'console_scripts': [
  46. 'akvo = akvo.gui.akvoGUI:main',
  47. ],
  48. },
  49. #cmdclass = cmdclass,
  50. # for forced build of pyuic
  51. cmdclass={
  52. 'build_ui': build_ui,
  53. 'build_py': custom_build_py,
  54. },
  55. # Mechanism to include auxiliary files
  56. include_package_data=True,
  57. package_data={
  58. 'akvo.gui': ['*.png'] #All .r files
  59. },
  60. )