From: Stefan Behnel Date: Thu, 24 Feb 2011 19:19:22 +0000 (+0100) Subject: fix building sdist without git X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cf1d70751876a83944c7fd0902f133fb37fed106;p=cython.git fix building sdist without git --- 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":