def METHOD_NAME() -> None:
    """We test a couple edge cases:
    * Third-party dependencies can be used.
    * A `python_distribution` (implicitly) depending on another `python_distribution`.
    * `package` vs `run`
    """
    sources = {
        "hellotest/utils/greeter.py": "GREET = 'Hello world!'",
        "hellotest/utils/BUILD": dedent(
            """\
            python_sources(name="lib")
            python_distribution(
                name="dist",
                dependencies=[":lib"],
                provides=python_artifact(name="utils-dist", version="0.0.1"),
            )
            """
        ),
        "hellotest/main.py": dedent(
            """\
            import colors
            import sys
            from hellotest.utils.greeter import GREET
            print(GREET)
            sys.exit(42)
            """
        ),
        "hellotest/BUILD": dedent(
            """\
            python_requirement(name="req", requirements=["ansicolors==1.1.8"])
            python_sources(name="lib")
            python_distribution(
                name="dist",
                dependencies=[":lib"],
                provides=python_artifact(name="main-dist", version="0.0.1"),
            )
            pyoxidizer_binary(
                name="bin",
                entry_point="hellotest.main",
                dependencies=[":dist", "{tmpdir}/hellotest/utils:dist"],
            )
            """
        ),
    }
    with setup_tmpdir(sources) as tmpdir:
        package_args = [
            "--backend-packages=['pants.backend.python', 'pants.backend.experimental.python.packaging.pyoxidizer']",
            "--python-interpreter-constraints=['>=3.8,<4']",
            f"--source-root-patterns=['/{tmpdir}']",
            "package",
            f"{tmpdir}/hellotest:bin",
        ]
        package_result = run_pants(package_args)
        package_result.assert_success()
        # Check that the binary is executable.
        bin_path = next(Path("dist", f"{tmpdir}.hellotest", "bin").glob("*/debug/install/bin"))
        bin_result = subprocess.run([bin_path], stdout=subprocess.PIPE)
        assert bin_result.returncode == 42
        assert bin_result.stdout == b"Hello world!\n"
        # Check that the binary runs.
        run_args = [
            "--backend-packages=['pants.backend.python', 'pants.backend.experimental.python.packaging.pyoxidizer']",
            "--python-interpreter-constraints=['>=3.8,<4']",
            f"--source-root-patterns=['/{tmpdir}']",
            "run",
            f"{tmpdir}/hellotest:bin",
        ]
        run_result = run_pants(run_args)
        print(run_result)
        assert run_result.exit_code == 42
        assert run_result.stdout == "Hello world!\n"