def _set_eweasel_env(): l_eweasel = os.environ["EWEASEL"] l_command = [ os.path.expandvars(os.path.join(l_eweasel, "spec", "$ISE_PLATFORM", "bin", ecompile._append_exe("eweasel-mt"))) ] l_command = l_command + ["-max_threads", str(multiprocessing.cpu_count())] l_command = l_command + ["-define", "EWEASEL", l_eweasel] l_command = l_command + ["-define", "INCLUDE", os.path.join(l_eweasel, "control")] l_command = l_command + ["-define", "ISE_EIFFEL", os.environ["ISE_EIFFEL"]] l_command = l_command + ["-define", "ISE_PLATFORM", os.environ["ISE_PLATFORM"]] l_command = l_command + ["-define", "ISE_LIBRARY", os.environ["ISE_LIBRARY"]] if platform.system() == "Windows": l_platform = "WINDOWS" if os.environ["ISE_PLATFORM"] == "dotnet": l_platform = "DOTNET" l_command = l_command + ["-define", l_platform, "1"] l_command = l_command + ["-define", "PLATFORM_TYPE", l_platform] else: l_command = l_command + ["-define", "UNIX", "1"] l_command = l_command + ["-define", "PLATFORM_TYPE", "unix"] l_command = l_command + ["-init", os.path.join(l_eweasel, "control", "init")] l_command = l_command + ["-output", elocation.eweasel_build()] return l_command
def _invoke_eweasel(command, catalog, keep_all): if not os.path.exists(elocation.eweasel_build()): os.makedirs(elocation.eweasel_build()) # TODO: Move this to the appropriate location. os.environ["ISE_PRECOMP"] = os.path.expandvars(os.path.join("$ISE_EIFFEL", "precomp", "spec", "$ISE_PLATFORM")) os.environ["ISE_LANG"] = "en_US" # TODO: On Windows we have to modify the config.eif script. if keep_all: command = command + ["-keep", "all"] else: command = command + ["-keep", "failed"] command = command + ["-catalog", catalog] eutils.execute_with_output(command)
def test_location(): elocation.move ("eve", "eve2") elocation.copy ("eve2", "eve3") elocation.delete ("eve3") elocation.move ("eve2", "eve") print (elocation.base_directory()) print (elocation.trunk_source()) print (elocation.eve_source()) print (elocation.eweasel()) print (elocation.nightly()) print (elocation.build()) print (elocation.eweasel_build())