Skip to content

Commit

Permalink
Add a change note for PR aio-libs#893
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Nov 15, 2023
1 parent 0da24d0 commit 270a19a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions CHANGES/893.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Replaced the packaging is replaced from an old-fashioned :file:`setup.py` to an
in-tree :pep:`517` build backend -- by :user:`webknjaz`.

Whenever the end-users or downstream packagers need to build ``yarl`` from
source (a Git checkout or an sdist), they have to pass a ``config_settings``
flag ``--build-c-extensions``. If this flag is not set, a pure-python
distribution will be built.

Here is how this can be done with ``pip``:

.. code-block:: console
$ python -m pip install . --config-settings=--build-c-extensions=
This will also work with ``-e | --editable``.

The same can be achieved via ``pypa/build``:

.. code-block:: console
$ python -m pip build --config-settings=--build-c-extensions=
Adding ``-w | --wheel`` can force ``pypa/build`` produce a wheel from source
directly, as opposed to building an ``sdist`` and then building from it.

0 comments on commit 270a19a

Please sign in to comment.