Skip to content

Commit

Permalink
Restore build-backend and remove switch to avoid pep517. Ref #1644.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Dec 1, 2019
1 parent cbd977b commit 7a709b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[build-system]
requires = ["wheel"]
requires = ["setuptools >= 40.8", "wheel"]
build-backend = "setuptools.build_meta"

[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 7a709b6

Please sign in to comment.