Skip to content

Commit

Permalink
Use intreehooks for bootstrapping flit_core
Browse files Browse the repository at this point in the history
Closes gh-298

This is a temporary workaround until a released version of pip supports the
official backend-path mechanism.
  • Loading branch information
takluyver committed Nov 26, 2019
1 parent 7e65ffc commit 5b3f632
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions doc/history.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ Version 2.1
- Added the :envvar:`FLIT_INSTALL_PYTHON` environment variable (:ghpull:`295`),
to configure flit to always install into a Python other than the one it's
running on.
- ``flit_core`` uses the ``intreehooks`` shim package to load its bootstrapping
backend, until a released version of pip supports the standard
``backend-path`` mechanism.

Version 2.0
-----------
Expand Down
9 changes: 7 additions & 2 deletions flit_core/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
[build-system]
requires = []
# Using intreehooks is a workaround until pip supports backend-path;
# once it does this will be converted to the standard mechanism.
requires = ["intreehooks"]
build-backend = "intreehooks:loader"

[tool.intreehooks]
build-backend = "flit_core.build_thyself"
backend-path = "."
#backend-path = "."

0 comments on commit 5b3f632

Please sign in to comment.