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 |