Commit cf1d7075 authored by Stefan Behnel's avatar Stefan Behnel

fix building sdist without git

parent 90120314
...@@ -3,7 +3,7 @@ from distutils.sysconfig import get_python_lib ...@@ -3,7 +3,7 @@ from distutils.sysconfig import get_python_lib
import os, os.path import os, os.path
import sys 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 assert os.system("git show-ref -s HEAD > .gitrev") == 0
if sys.platform == "darwin": if sys.platform == "darwin":
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment