scripts/install-debugclients.py

changeset 7228
6037ddba57aa
parent 7192
a22eee00b052
child 7257
c4d0cac9b5c9
equal deleted inserted replaced
7227:5ba312e6599a 7228:6037ddba57aa
10 """ 10 """
11 Installation script for the eric6 debug clients. 11 Installation script for the eric6 debug clients.
12 """ 12 """
13 13
14 from __future__ import unicode_literals, print_function 14 from __future__ import unicode_literals, print_function
15 try:
16 import cStringIO as io
17 try:
18 from PyQt5 import sip
19 except ImportError:
20 import sip
21 sip.setapi('QString', 2)
22 sip.setapi('QVariant', 2)
23 sip.setapi('QTextStream', 2)
24 except (ImportError):
25 import io # __IGNORE_WARNING__
15 26
16 import sys 27 import sys
17 import os 28 import os
18 import re 29 import re
19 import compileall 30 import compileall
20 import shutil 31 import shutil
21 import fnmatch 32 import fnmatch
22 import io
23 33
24 # Define the globals. 34 # Define the globals.
25 progName = None 35 progName = None
26 currDir = os.getcwd() 36 currDir = os.getcwd()
27 modDir = None 37 modDir = None
240 250
241 # Parse the command line. 251 # Parse the command line.
242 global progName, modDir, doCleanup, doCompile, distDir 252 global progName, modDir, doCleanup, doCompile, distDir
243 global sourceDir 253 global sourceDir
244 254
245 if sys.version_info < (3, 5, 0) or sys.version_info > (3, 99, 99): 255 if sys.version_info < (2, 7, 0) or \
246 print('Sorry, eric6 requires at least Python 3.5 for running.') 256 (sys.version_info >= (3, 0, 0) and sys.version_info < (3, 5, 0)) \
257 or sys.version_info > (3, 99, 99):
258 print('Sorry, the eric6 debugger requires Python 2.7 or'
259 'Python 3.5 or better for running.')
247 exit(5) 260 exit(5)
248 261
249 progName = os.path.basename(argv[0]) 262 progName = os.path.basename(argv[0])
250 263
251 if os.path.dirname(argv[0]): 264 if os.path.dirname(argv[0]):

eric ide

mercurial