Skip to content

Commit

Permalink
Avoid installation failure with newer setuptools
Browse files Browse the repository at this point in the history
Implement workaround for avoiding installation errors on system with
newer setuptools

AttributeError: 'SpecifierSet' object has no attribute 'split'

Longer term we will have to refactor setup.py which is the root
of all evil.

Fixes: #590
Signed-off-by: Sorin Sbarnea <[email protected]>
  • Loading branch information
ssbarnea authored and webknjaz committed Oct 22, 2019
1 parent ef356c5 commit 7a2221a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ pip-log.txt
# Coverage artifacts
.coverage
coverage.xml
pip-wheel-metadata
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[build-system]
requires = [
"setuptools == 41.0.0", # See https://github.com/pypa/setuptools/issues/1869
"setuptools_scm >= 1.15.0",
"setuptools_scm_git_archive >= 1.0",
"wheel",
]
build-backend = "setuptools.build_meta"

1 comment on commit 7a2221a

@ssbarnea
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Finally! 🎉

Please sign in to comment.