forked from aio-libs/yarl
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a change note for PR aio-libs#893
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |