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.6KB

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