Explorar el Código

Windows tweaks

HEAD
John Daily hace 7 años
padre
commit
ee041ed79e
Se han modificado 2 ficheros con 7 adiciones y 31 borrados
  1. 2
    2
      akvo/tressel/filtfilt.py
  2. 5
    29
      setup.py

+ 2
- 2
akvo/tressel/filtfilt.py Ver fichero

@@ -35,11 +35,11 @@ def filtfilt(b,a,x):
35 35
     edge=ntaps*3
36 36
 
37 37
     if x.ndim != 1:
38
-        raise ValueError, "Filiflit is only accepting 1 dimension arrays."
38
+        raise ValueError("Filiflit is only accepting 1 dimension arrays.")
39 39
 
40 40
     #x must be bigger than edge
41 41
     if x.size < edge:
42
-        raise ValueError, "Input vector needs to be bigger than 3 * max(len(a),len(b)."
42
+        raise ValueError("Input vector needs to be bigger than 3 * max(len(a),len(b).")
43 43
 
44 44
     if len(a) < ntaps:
45 45
         a=r_[a,zeros(len(b)-len(a))]

+ 5
- 29
setup.py Ver fichero

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

Loading…
Cancelar
Guardar