From cf1d70751876a83944c7fd0902f133fb37fed106 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 24 Feb 2011 20:19:22 +0100 Subject: [PATCH] fix building sdist without git --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 8f8e6f96..41771618 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from distutils.sysconfig import get_python_lib import os, os.path import sys -if 'sdist' in sys.argv and sys.platform != "win32": +if 'sdist' in sys.argv and sys.platform != "win32" and os.path.isdir('.git'): assert os.system("git show-ref -s HEAD > .gitrev") == 0 if sys.platform == "darwin": -- 2.26.2