Remove `backend` (internal) option.

This is not used and it is a good things as it is broken..
This commit is contained in:
Matthieu Gautier 2024-02-05 11:42:04 +01:00
parent 5a1175cf2d
commit 20ca39145d
3 changed files with 0 additions and 22 deletions

View File

@ -38,23 +38,3 @@ def get_target_step(key, default_context=None):
def target_steps():
return _target_steps
def backend():
global _backend
if _backend is not None:
return _backend
_platform = platform.system()
if _platform == "Windows":
print(
"ERROR: kiwix-build is not intented to run on Windows platform.\n"
"There is no backend for Windows, so we can't launch any commands."
)
sys.exit(0)
if _platform == "Linux":
_platform, _, _ = platform.linux_distribution()
_platform = _platform.lower()
_backend = backends.Linux()
return _backend

View File

@ -12,7 +12,6 @@ from ._global import (
add_target_step,
get_target_step,
target_steps,
backend,
)
from . import _global

View File

@ -13,7 +13,6 @@ from ._global import (
add_target_step,
get_target_step,
target_steps,
backend,
)
from . import _global
from .dependencies.base import (