Procházet zdrojové kódy

setup.py script for anacona?

HEAD
Trevor Irons před 7 roky
rodič
revize
60e84e419a
1 změnil soubory, kde provedl 7 přidání a 6 odebrání
  1. 7
    6
      setup.py

+ 7
- 6
setup.py Zobrazit soubor

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

Načítá se…
Zrušit
Uložit