scripts/install-debugclients.py

branch
eric7
changeset 8501
7b5f10581c35
parent 8314
e3642a6a1e71
child 8881
54e42bc2437a
equal deleted inserted replaced
8500:e7814dd19115 8501:7b5f10581c35
9 9
10 """ 10 """
11 Installation script for the eric debug clients. 11 Installation script for the eric debug clients.
12 """ 12 """
13 13
14 import compileall
15 import contextlib
16 import fnmatch
14 import io 17 import io
15 import sys
16 import os 18 import os
17 import re 19 import re
18 import compileall
19 import shutil 20 import shutil
20 import fnmatch 21 import sys
21 import contextlib
22 22
23 # Define the globals. 23 # Define the globals.
24 progName = None 24 progName = None
25 currDir = os.getcwd() 25 currDir = os.getcwd()
26 modDir = None 26 modDir = None
84 Module function to set the values of globals that need more than a 84 Module function to set the values of globals that need more than a
85 simple assignment. 85 simple assignment.
86 """ 86 """
87 global modDir, pyModDir 87 global modDir, pyModDir
88 88
89 try: 89 import sysconfig
90 import distutils.sysconfig 90
91 except ImportError: 91 modDir = sysconfig.get_path('platlib')
92 print("Please install the 'distutils' package first.")
93 exit(5)
94
95 modDir = distutils.sysconfig.get_python_lib(True)
96 pyModDir = modDir 92 pyModDir = modDir
97 93
98 94
99 def copyTree(src, dst, filters, excludeDirs=None, excludePatterns=None): 95 def copyTree(src, dst, filters, excludeDirs=None, excludePatterns=None):
100 """ 96 """

eric ide

mercurial