diff options
Diffstat (limited to 'docs/build_meta.rst')
-rw-r--r-- | docs/build_meta.rst | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/docs/build_meta.rst b/docs/build_meta.rst index c36e2bab..2ad5ae26 100644 --- a/docs/build_meta.rst +++ b/docs/build_meta.rst @@ -7,7 +7,7 @@ What is it? Python packaging has come `a long way <https://www.bernat.tech/pep-517-518/>`_. -The traditional ``setuptools`` way of packgaging Python modules +The traditional ``setuptools`` way of packaging Python modules uses a ``setup()`` function within the ``setup.py`` script. Commands such as ``python setup.py bdist`` or ``python setup.py bdist_wheel`` generate a distribution bundle and ``python setup.py install`` installs the distribution. @@ -67,14 +67,11 @@ specify the package information:: [options] packages = find: -Now generate the distribution. Although the PyPA is still working to -`provide a recommended tool <https://github.com/pypa/packaging-problems/issues/219>`_ -to build packages, the `pep517 package <https://pypi.org/project/pep517>`_ -provides this functionality. To build the package:: +Now generate the distribution. To build the package, use +`PyPA build <https://pypa-build.readthedocs.io/en/latest/>`_:: - $ pip install -q pep517 - $ mkdir dist - $ python -m pep517.build . + $ pip install -q build + $ python -m build And now it's done! The ``.whl`` file and ``.tar.gz`` can then be distributed and installed:: |