Browse Source

setup.py script for anacona?

HEAD
Trevor Irons 7 years ago
parent
commit
60e84e419a
1 changed files with 7 additions and 6 deletions
  1. 7
    6
      setup.py

+ 7
- 6
setup.py View File

3
 
3
 
4
 # optionally use qt4
4
 # optionally use qt4
5
 # if sys.argv[1] == "build_ui":
5
 # if sys.argv[1] == "build_ui":
6
-#     try:
7
-#         from pyqt_distutils.build_ui import build_ui
6
+try:
7
+    from pyqt_distutils.build_ui import build_ui
8
 #         cmdclass = {'build_ui': build_ui}
8
 #         cmdclass = {'build_ui': build_ui}
9
-#     except ImportError:
10
-#         build_ui = None  # user won't have pyqt_distutils when deploying
9
+except ImportError:
10
+    build_ui = None  # user won't have pyqt_distutils when deploying
11
 #         cmdclass = {}
11
 #         cmdclass = {}
12
 # else:
12
 # else:
13
 #     build_ui = None  # user won't have pyqt_distutils when deploying
13
 #     build_ui = None  # user won't have pyqt_distutils when deploying
14
 #     cmdclass = {}
14
 #     cmdclass = {}
15
 
15
 
16
+
16
 # Require PyQt5 and compiltion of GUI files via pyuic 
17
 # Require PyQt5 and compiltion of GUI files via pyuic 
17
 from setuptools import setup, Extension
18
 from setuptools import setup, Extension
18
 from setuptools.command.build_py import build_py
19
 from setuptools.command.build_py import build_py
19
-from pyqt_distutils.build_ui import build_ui
20
+#from pyqt_distutils.build_ui import build_ui
20
 
21
 
21
 class custom_build_py(build_py):
22
 class custom_build_py(build_py):
22
     def run(self):
23
     def run(self):
42
       #setup_requires=['PyQt5'],
43
       #setup_requires=['PyQt5'],
43
       setup_requires=[
44
       setup_requires=[
44
         # Setuptools 18.0 properly handles Cython extensions.
45
         # Setuptools 18.0 properly handles Cython extensions.
45
-        'PyQt5','setuptools>=18.0',
46
+        'PyQt5', 'pyqt_distutils','setuptools>=18.0',
46
       ],
47
       ],
47
 #      ext_modules = cythonise("akvo/tressel/*.pyx"), 
48
 #      ext_modules = cythonise("akvo/tressel/*.pyx"), 
48
 #      build_requires=['cython'],
49
 #      build_requires=['cython'],

Loading…
Cancel
Save