CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-pip

The PyPA recommended tool for installing Python packages.

91

1.07x
Overview
Eval results
Files

task.mdevals/scenario-5/

Wheel Builder Utility

A Python utility that builds wheel distributions from source packages and manages the build process.

Capabilities

Build wheels from source packages

  • Given a local source directory containing a valid Python package with setup.py, the utility builds a wheel file and saves it to a specified output directory @test
  • Given a package name from PyPI (e.g., "requests"), the utility downloads the source and builds a wheel to the output directory @test
  • When building multiple packages specified in a list, wheels are built for each package and saved to the output directory @test

Handle build errors gracefully

  • When a package cannot be built (e.g., missing build dependencies), the utility returns an error message indicating the failure without crashing @test

Implementation

@generates

API

def build_wheel(source: str, output_dir: str) -> dict:
    """
    Build a wheel from a source package.

    Args:
        source: Path to local source directory or package name from PyPI
        output_dir: Directory where the built wheel should be saved

    Returns:
        dict: Build result with keys 'success' (bool), 'wheel_path' (str or None),
              and 'error' (str or None)
    """
    pass

def build_wheels(sources: list[str], output_dir: str) -> list[dict]:
    """
    Build wheels from multiple source packages.

    Args:
        sources: List of paths to local source directories or package names from PyPI
        output_dir: Directory where the built wheels should be saved

    Returns:
        list[dict]: List of build results for each source
    """
    pass

Dependencies { .dependencies }

pip { .dependency }

Provides wheel building support for Python packages.

Install with Tessl CLI

npx tessl i tessl/pypi-pip

tile.json