Skip to content

Commit

Permalink
Workaround setuptools_scm bug for Ubuntu 16.04
Browse files Browse the repository at this point in the history
"setuptools_scm >=1.8.0, <=1.10.1" had a bug where callables would
crash the installation when installing from an sdist.

Ubuntu 16.04 ships with 1.10.1...

This workaround just noops the pop call that is causing the issue.

see: pypa/setuptools-scm@ff948dcd99
  • Loading branch information
ap-- committed Jul 12, 2020
1 parent f8fea24 commit 5bf78fe
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ def editable_local_scheme(version):
}


# workaround:
# sdist installs with callables were broken between
# "setuptools_scm >=1.8, <=1.10.1" and of course ubuntu 16.04 ships
# with setuptools_scm==1.10.1 ...
# since we're not using "root" we can just noop
pyusb_scm_version.pop = lambda *_: None


setup(
name='pyusb',
use_scm_version=pyusb_scm_version,
Expand Down

0 comments on commit 5bf78fe

Please sign in to comment.