Surface NMR processing and inversion GUI
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

setup.py 2.2KB

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