forked from LemmaSoftware/akvo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
66 lines (60 loc) · 1.75 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/env python
# Requires PyQt5 and compiltion of GUI files via pyuic
from setuptools import setup, Extension
from setuptools.command.build_py import build_py
try:
from pyqt_distutils.build_ui import build_ui
except:
print("Please install pyqt_distutils")
print( "(sudo) pip(3) install pyqt-distutils")
exit()
class custom_build_py(build_py):
def run(self):
self.run_command('build_ui')
build_py.run(self)
setup(name='Akvo',
version='1.0.5',
description='Surface nuclear magnetic resonance workbench',
author='Trevor P. Irons',
author_email='[email protected]',
url='https://svn.lemmasofware.org/akvo',
#setup_requires=['PyQt5'],
setup_requires=[
# Setuptools 18.0 properly handles Cython extensions.
#'PyQt',
'pyqt_distutils',
'PyQt5',
'setuptools>=18.0',
],
# ext_modules = cythonise("akvo/tressel/*.pyx"),
# build_requires=['cython'],
install_requires=[
# 'cython',
'rpy2',
'matplotlib',
'scipy',
'numpy',
'PyQt5',
'pyyaml',
'pyqt-distutils',
'cmocean'
],
packages=['akvo', 'akvo.tressel', 'akvo.gui'],
license=['GPL 4.0'],
entry_points = {
'console_scripts': [
'akvo = akvo.gui.akvoGUI:main',
],
},
#cmdclass = cmdclass,
# for forced build of pyuic
cmdclass={
'build_ui': build_ui,
'build_py': custom_build_py,
},
# Mechanism to include auxiliary files
include_package_data=True,
package_data={
'akvo.gui': ['*.png'] #All .r files
},
)