linkchecker/pyoxidizer.bzl
Chris Mayo 141a811ba6 Enable creating a binary with PyOxidizer
With PyOxidizer 0.18.0 AppName in setup.py has to be changed to the
all lower case "linkchecker".

Application translations do not work.

better_exchook2.fallback_findfile() may still need converting, first
needs a test.
2021-12-30 19:27:04 +00:00

13 lines
379 B
Python

def make_exe():
dist = default_python_distribution()
python_config = dist.make_python_interpreter_config()
python_config.run_module = "linkcheck"
exe = dist.to_python_executable(
name="linkchecker",
config=python_config,
)
exe.add_python_resources(exe.pip_install([CWD]))
return exe
register_target("exe", make_exe)
resolve_targets()