def METHOD_NAME(
    setup_directory_or_file: str, dest_folder: str = None, enable_wheel: bool = True, enable_sdist: bool = True
):
    """
    Uses the invoking python executable to build a wheel and sdist file given a setup.py or setup.py directory. Outputs
    into a distribution directory and defaults to the value of get_artifact_directory().
    """
    dist = get_artifact_directory(dest_folder)
    if not os.path.isdir(setup_directory_or_file):
        setup_directory_or_file = os.path.dirname(setup_directory_or_file)
    if enable_wheel:
        run_logged(
            [sys.executable, "setup.py", "bdist_wheel", "-d", dist], prefix="create_wheel", cwd=setup_directory_or_file
        )
    if enable_sdist:
        run_logged(
            [sys.executable, "setup.py", "sdist", "-d", dist],
            prefix="create_sdist",
            cwd=setup_directory_or_file,
        )