Skip to content

Commit

Permalink
Merge pull request #1927 from pypa/bugfix/1644-build-backend
Browse files Browse the repository at this point in the history
Restore build-backend and remove switch to avoid pep517.
  • Loading branch information
jaraco authored Dec 29, 2019
2 parents 3910bbb + 8495fb9 commit e6bdf25
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
1 change: 1 addition & 0 deletions changelog.d/1927.change.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Setuptools once again declares 'setuptools' in the ``build-system.requires`` and adds PEP 517 build support by declaring itself as the ``build-backend``. It additionally specifies ``build-system.backend-path`` to rely on itself for those builders that support it.
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[build-system]
requires = ["wheel"]
requires = ["setuptools >= 40.8", "wheel"]
build-backend = "setuptools.build_meta"
backend-path = ["."]

[tool.towncrier]
package = "setuptools"
Expand Down
6 changes: 0 additions & 6 deletions tools/tox_pip.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ def pip(args):
pypath = pypath.split(os.pathsep) if pypath is not None else []
pypath.insert(0, TOX_PIP_DIR)
os.environ['PYTHONPATH'] = os.pathsep.join(pypath)
# Disable PEP 517 support when using editable installs.
for n, a in enumerate(args):
if not a.startswith('-'):
if a in 'install' and '-e' in args[n:]:
args.insert(n + 1, '--no-use-pep517')
break
# Fix call for setuptools editable install.
for n, a in enumerate(args):
if a == '.':
Expand Down

0 comments on commit e6bdf25

Please sign in to comment.