Skip to content

Commit

Permalink
Workaround setuptools editable packages path issue (#25848)
Browse files Browse the repository at this point in the history
Setuptools 64.0.0 introduced change that broke paths of editable
cli packages. This change makes CLIs installed via editable
packages to miss paths required to import code from the editable
packages themselves.

Related to: pypa/setuptools#3548
  • Loading branch information
potiuk committed Aug 20, 2022
1 parent cdbad44 commit 98a7701
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,11 @@
line-length = 110
target-version = ['py37', 'py38', 'py39', 'py310']
skip-string-normalization = true
# The build system section is needed in order to workaround the side-effect introduced by recent
# setup tools version. The recent setuptools version update (64.0.0) broke paths of editable installations
# and we have to pin it to 63.4.3 version
# The problem is tracked (and this limitation might be removed if it is solved) in:
# https://github.com/pypa/setuptools/issues/3548
[build-system]
requires = ['setuptools==63.4.3']
build-backend = "setuptools.build_meta"

0 comments on commit 98a7701

Please sign in to comment.