def getTargetPythonDLLPath(): dll_path = getRunningPythonDLLPath() from nuitka.Options import isPythonDebug if dll_path.endswith("_d.dll"): if not isPythonDebug(): dll_path = dll_path[:-6] + ".dll" if not os.path.exists(dll_path): sys.exit("Error, cannot switch to non-debug Python, not installed.") else: if isPythonDebug(): dll_path = dll_path[:-4] + "_d.dll" if not os.path.exists(dll_path): sys.exit("Error, cannot switch to debug Python, not installed.") return dll_path
def getPythonABI(): if hasattr(sys, "abiflags"): abiflags = sys.abiflags # Cyclic dependency here. from nuitka.Options import isPythonDebug if isPythonDebug() or hasattr(sys, "getobjects"): if not abiflags.startswith('d'): abiflags = 'd' + abiflags else: abiflags = "" return abiflags
def getPythonABI(): if hasattr(sys, "abiflags"): abiflags = sys.abiflags # Cyclic dependency here. from nuitka.Options import isPythonDebug if isPythonDebug() or hasattr(sys, "getobjects"): if not abiflags.startswith("d"): abiflags = "d" + abiflags else: abiflags = "" return abiflags