# build [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/pypa/build/main.svg)](https://results.pre-commit.ci/latest/github/pypa/build/main) [![CI test](https://github.com/pypa/build/actions/workflows/test.yml/badge.svg)](https://github.com/pypa/build/actions/workflows/test.yml) [![codecov](https://codecov.io/gh/pypa/build/branch/main/graph/badge.svg)](https://codecov.io/gh/pypa/build) [![Documentation Status](https://readthedocs.org/projects/pypa-build/badge/?version=latest)](https://build.pypa.io/en/latest/?badge=latest) [![PyPI version](https://badge.fury.io/py/build.svg)](https://pypi.org/project/build/) [![Discord](https://img.shields.io/discord/803025117553754132?label=Discord%20chat%20%23build)](https://discord.gg/pypa) A simple, correct Python build frontend. See the [documentation](https://build.pypa.io) for more information. ### Installation `build` can be installed via `pip` or an equivalent via: ```console $ pip install build ``` ### Usage ```console $ python -m build ``` This will build the package in an isolated environment, generating a source-distribution and wheel in the directory `dist/`. See the [documentation](https://build.pypa.io) for full information. Build is also available via the command line as `pyproject-build` once installed. ### Common arguments - `--sdist` (`-s`): Produce just an SDist - `--wheel` (`-w`): Produce just a wheel - `--metadata`: Produce just the metadata as JSON. Cannot be used with `--sdist`/`--wheel`. - `-C