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.


Change-Id: I0cf7f64363b308e06ac9bcdebcfc3832ff7b65b9
Tested-by: Kudu Jenkins
Reviewed-by: Todd Lipcon <>


Branch: refs/heads/master
Commit: 0a9d1aac2a328500b702d7739b13fe3e590e5c86
Parents: 9bc0d9e
Author: Adar Dembo <>
Authored: Fri Mar 2 14:04:36 2018 -0800
Committer: Adar Dembo <>
Committed: Fri Mar 2 23:44:08 2018 +0000

 python/requirements.txt | 8 ++++++++
 1 file changed, 8 insertions(+)
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
+# 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 for more details.

Reply via email to