Repository: kudu Updated Branches: refs/heads/master 9bc0d9e3f -> 0a9d1aac2
python: fix build on Python 2.6 We appear to have been bitten by a bug [1] in setuptools_scm. Here's the recommended workaround. For the life of me, I couldn't isolate this to any particular package version change. I tried "last known good" versions of pip, setuptools, setuptools_scm, pytest, and pytest-runner. In every case the exception persisted when building on CentOS 6.6 with Python 2.6.6, but not on Ubuntu 16.04 with Python 2.7.12. My best guess is that it's due to the Python version, but I don't know that for sure. 1. https://github.com/pypa/setuptools_scm/issues/209 Change-Id: I0cf7f64363b308e06ac9bcdebcfc3832ff7b65b9 Reviewed-on: http://gerrit.cloudera.org:8080/9468 Tested-by: Kudu Jenkins Reviewed-by: Todd Lipcon <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/kudu/repo Commit: http://git-wip-us.apache.org/repos/asf/kudu/commit/0a9d1aac Tree: http://git-wip-us.apache.org/repos/asf/kudu/tree/0a9d1aac Diff: http://git-wip-us.apache.org/repos/asf/kudu/diff/0a9d1aac Branch: refs/heads/master Commit: 0a9d1aac2a328500b702d7739b13fe3e590e5c86 Parents: 9bc0d9e Author: Adar Dembo <[email protected]> Authored: Fri Mar 2 14:04:36 2018 -0800 Committer: Adar Dembo <[email protected]> Committed: Fri Mar 2 23:44:08 2018 +0000 ---------------------------------------------------------------------- python/requirements.txt | 8 ++++++++ 1 file changed, 8 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kudu/blob/0a9d1aac/python/requirements.txt ---------------------------------------------------------------------- diff --git a/python/requirements.txt b/python/requirements.txt index 1740925..a4f3cb0 100644 --- a/python/requirements.txt +++ b/python/requirements.txt @@ -3,3 +3,11 @@ cython == 0.26.1 six unittest2 pytz + +# This is a dependency of pytest, but if we don't list it here, python 2.6 +# virtualenvs will fail in build_ext with this exception: +# +# pkg_resources.DistributionNotFound: The 'setuptools_scm>=1.15.0' distribution was not found and is required by the application +# +# See https://github.com/pypa/setuptools_scm/issues/209 for more details. +setuptools_scm
