install.py

changeset 6304
68f9aa03bf75
parent 6275
8ce9f9c467ec
child 6316
ee88310f0334
equal deleted inserted replaced
6303:ec9ebaf206fb 6304:68f9aa03bf75
27 import compileall 27 import compileall
28 import py_compile 28 import py_compile
29 import glob 29 import glob
30 import shutil 30 import shutil
31 import fnmatch 31 import fnmatch
32 import distutils.sysconfig
33 import codecs 32 import codecs
34 import subprocess 33 import subprocess
35 import time 34 import time
36 35
37 # Define the globals. 36 # Define the globals.
231 """ 230 """
232 Module function to set the values of globals that need more than a 231 Module function to set the values of globals that need more than a
233 simple assignment. 232 simple assignment.
234 """ 233 """
235 global platBinDir, modDir, pyModDir, apisDir, pyqtVariant, platBinDirOld 234 global platBinDir, modDir, pyModDir, apisDir, pyqtVariant, platBinDirOld
236 235
236 try:
237 import distutils.sysconfig
238 except ImportError:
239 print("Please install the 'distutils' package first.")
240 exit(5)
241
237 if sys.platform.startswith("win"): 242 if sys.platform.startswith("win"):
238 platBinDir = sys.exec_prefix 243 platBinDir = sys.exec_prefix
239 if platBinDir.endswith("\\"): 244 if platBinDir.endswith("\\"):
240 platBinDir = platBinDir[:-1] 245 platBinDir = platBinDir[:-1]
241 platBinDirOld = platBinDir 246 platBinDirOld = platBinDir

eric ide

mercurial