|
@@ -1,19 +1,6 @@
|
1
|
1
|
#!/usr/bin/env python
|
2
|
|
-import sys
|
3
|
2
|
|
4
|
|
-# optionally use qt4
|
5
|
|
-# if sys.argv[1] == "build_ui":
|
6
|
|
-# try:
|
7
|
|
-# from pyqt_distutils.build_ui import build_ui
|
8
|
|
-# cmdclass = {'build_ui': build_ui}
|
9
|
|
-# except ImportError:
|
10
|
|
-# build_ui = None # user won't have pyqt_distutils when deploying
|
11
|
|
-# cmdclass = {}
|
12
|
|
-# else:
|
13
|
|
-# build_ui = None # user won't have pyqt_distutils when deploying
|
14
|
|
-# cmdclass = {}
|
15
|
|
-
|
16
|
|
-# Require PyQt5 and compiltion of GUI files via pyuic
|
|
3
|
+# Requires PyQt5 and compiltion of GUI files via pyuic
|
17
|
4
|
from setuptools import setup, Extension
|
18
|
5
|
from setuptools.command.build_py import build_py
|
19
|
6
|
from pyqt_distutils.build_ui import build_ui
|
|
@@ -23,16 +10,6 @@ class custom_build_py(build_py):
|
23
|
10
|
self.run_command('build_ui')
|
24
|
11
|
build_py.run(self)
|
25
|
12
|
|
26
|
|
-try:
|
27
|
|
- from Cython.Build import cythonize as cythonise
|
28
|
|
-except ImportError:
|
29
|
|
- def cythonise(*args, **kwargs):
|
30
|
|
- #from Cython.Build import cythonize
|
31
|
|
- #return cythonize(*args, **kwargs)
|
32
|
|
- return
|
33
|
|
-
|
34
|
|
-#from distutils.core import setup
|
35
|
|
-
|
36
|
13
|
setup(name='Akvo',
|
37
|
14
|
version='1.0.5',
|
38
|
15
|
description='Surface nuclear magnetic resonance workbench',
|
|
@@ -42,7 +19,8 @@ setup(name='Akvo',
|
42
|
19
|
#setup_requires=['PyQt5'],
|
43
|
20
|
setup_requires=[
|
44
|
21
|
# Setuptools 18.0 properly handles Cython extensions.
|
45
|
|
- 'PyQt5','setuptools>=18.0',
|
|
22
|
+ #'PyQt',
|
|
23
|
+ 'pyqt_distutils','setuptools>=18.0',
|
46
|
24
|
],
|
47
|
25
|
# ext_modules = cythonise("akvo/tressel/*.pyx"),
|
48
|
26
|
# build_requires=['cython'],
|
|
@@ -52,7 +30,7 @@ setup(name='Akvo',
|
52
|
30
|
'matplotlib',
|
53
|
31
|
'scipy',
|
54
|
32
|
'numpy',
|
55
|
|
- 'PyQt5',
|
|
33
|
+# 'PyQt5',
|
56
|
34
|
'pyyaml',
|
57
|
35
|
'pyqt-distutils',
|
58
|
36
|
'cmocean'
|
|
@@ -69,7 +47,6 @@ setup(name='Akvo',
|
69
|
47
|
'build_ui': build_ui,
|
70
|
48
|
'build_py': custom_build_py,
|
71
|
49
|
},
|
72
|
|
- #cmdclass=cmdclass,
|
73
|
50
|
# Mechanism to include auxiliary files
|
74
|
51
|
include_package_data=True,
|
75
|
52
|
package_data={
|