.. _spkg_packaging:

packaging: Core utilities for Python packages
=============================================

Description
-----------

Core utilities for Python packages

Type
----

standard


Dependencies
------------

- $(PYTHON)
- :ref:`spkg_setuptools`
- :ref:`spkg_pip`
- :ref:`spkg_wheel`
- :ref:`spkg_pyparsing`
- :ref:`spkg_setuptools_wheel`

Version Information
-------------------

package-version.txt::

    21.3

install-requires.txt::

    packaging >=18.0
    # Trac #30975: packaging 20.5 is known to work but we have to silence "DeprecationWarning: Creating a LegacyVersion"


Equivalent System Packages
--------------------------

conda:

.. CODE-BLOCK:: bash

    $ conda install  packaging


macports:
install the following packages: py-packaging

void:

.. CODE-BLOCK:: bash

    $ sudo xbps-install  python3-packaging


See https://repology.org/project/packaging/versions, https://repology.org/project/python:packaging/versions


However, these system packages will not be used for building Sage
because using Python site-packages is not supported by the Sage distribution;
see :trac:`29023`

