Surface NMR processing and inversion GUI
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

setup.py 2.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. with open("README.md", "r") as fh:
  16. long_description = fh.read()
  17. setup(name='Akvo',
  18. version='1.0.14',
  19. description='Surface nuclear magnetic resonance workbench',
  20. long_description=long_description,
  21. author='Trevor P. Irons',
  22. author_email='Trevor.Irons@lemmasoftware.org',
  23. url='https://akvo.lemmasoftware.org/',
  24. #setup_requires=['PyQt5'],
  25. setup_requires=[
  26. # Setuptools 18.0 properly handles Cython extensions.
  27. #'PyQt',
  28. 'pyqt_distutils',
  29. 'PyQt5',
  30. 'setuptools>=18.0',
  31. ],
  32. # ext_modules = cythonise("akvo/tressel/*.pyx"),
  33. # build_requires=['cython'],
  34. install_requires=[
  35. # 'cython',
  36. # 'rpy2',
  37. 'matplotlib',
  38. 'scipy',
  39. 'numpy',
  40. 'pyqt5',
  41. 'pyyaml',
  42. 'pandas',
  43. 'pyqt-distutils',
  44. 'cmocean'
  45. ],
  46. packages=['akvo', 'akvo.tressel', 'akvo.gui'],
  47. license=['GPL 4.0'],
  48. entry_points = {
  49. 'console_scripts': [
  50. 'akvo = akvo.gui.akvoGUI:main',
  51. ],
  52. },
  53. #cmdclass = cmdclass,
  54. # for forced build of pyuic
  55. cmdclass={
  56. 'build_ui': build_ui,
  57. 'build_py': custom_build_py,
  58. },
  59. # Mechanism to include auxiliary files
  60. include_package_data=True,
  61. package_data={
  62. 'akvo.gui': ['*.png'] #All .r files
  63. },
  64. classifiers=[
  65. "Programming Language :: Python :: 3",
  66. "License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
  67. "Operating System :: OS Independent",
  68. ],
  69. )