Skip to content

Replace setup.py with build#342

Merged
jdufresne merged 1 commit intopython-distro:masterfrom
jdufresne:build
Jun 27, 2022
Merged

Replace setup.py with build#342
jdufresne merged 1 commit intopython-distro:masterfrom
jdufresne:build

Conversation

@jdufresne
Copy link
Member

Using setup.py is no longer recommended by setuptools. Instead, projects
should use build: https://github.com/pypa/build. Invoking build will
create a source and wheel distribution
https://pypa-build.readthedocs.io/en/latest/:

By default, a source distribution (sdist) is built from {srcdir} and a
binary distribution (wheel) is built from the sdist.

See the setuptools quickstart guides for more information:
https://setuptools.pypa.io/en/latest/userguide/quickstart.html

Instead, when creating new Python packages, it is recommended to use a
command line tool called build. This tool will automatically download
setuptools and any other build-time dependencies that your project
might have. You just need to specify them in a pyproject.toml file at
the root of your package, as indicated in the following section.

Using setup.py is no longer recommended by setuptools. Instead, projects
should use build: https://github.com/pypa/build. Invoking build will
create a source and wheel distribution
https://pypa-build.readthedocs.io/en/latest/:

> By default, a source distribution (sdist) is built from {srcdir} and a
> binary distribution (wheel) is built from the sdist.

See the setuptools quickstart guides for more information:
https://setuptools.pypa.io/en/latest/userguide/quickstart.html

> Instead, when creating new Python packages, it is recommended to use a
> command line tool called build. This tool will automatically download
> setuptools and any other build-time dependencies that your project
> might have. You just need to specify them in a pyproject.toml file at
> the root of your package, as indicated in the following section.
@jdufresne jdufresne merged commit fc50845 into python-distro:master Jun 27, 2022
@jdufresne jdufresne deleted the build branch June 27, 2022 00:41
@hartwork hartwork added this to the 1.8.0 milestone Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants