mit neuen venv und exe-Files

This commit is contained in:
2024-11-03 17:26:54 +01:00
parent 07c05a338a
commit 0c373ff593
15115 changed files with 1998469 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
"""A collection of functions which are triggered automatically by finder when
backports namespace is included.
"""
from __future__ import annotations
from typing import TYPE_CHECKING
from cx_Freeze.hooks.zoneinfo import load_zoneinfo
if TYPE_CHECKING:
from cx_Freeze.finder import ModuleFinder
from cx_Freeze.module import Module
def load_backports_zoneinfo(finder: ModuleFinder, module: Module) -> None:
"""The backports.zoneinfo module should be a drop-in replacement for the
Python 3.9 standard library module zoneinfo.
"""
load_zoneinfo(finder, module)
def load_backports_zoneinfo__common(_, module: Module) -> None:
"""Ignore module not used in Python 3.8."""
module.ignore_names.add("importlib_resources")
def load_backports_zoneinfo__tzpath(_, module: Module) -> None:
"""Ignore module not used in Python 3.8."""
module.ignore_names.add("importlib_resources")
__all__ = [
"load_backports_zoneinfo",
"load_backports_zoneinfo__common",
"load_backports_zoneinfo__tzpath",
]