Skip to content

Commit 3de94a4

Browse files
committed
Error if submodules are not initialized yet
1 parent 1a80a4c commit 3de94a4

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ sassc/
5454
sass-spec/
5555

5656
# libsass-python
57+
._.DS_Store
5758
build/
5859
dist/
5960
docs/_build

setup.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from __future__ import with_statement
1+
from __future__ import print_function, with_statement
22

33
import ast
44
import distutils.cmd
@@ -44,6 +44,13 @@
4444
sources = ['pysass.c']
4545
sources.extend(libsass_sources)
4646

47+
if not os.path.isdir('sass2scss') and os.path.isdir('.git'):
48+
print('Submodules seem not initialized yet.'
49+
'You can initialize it by the following command:',
50+
file=sys.stderr)
51+
print('\tgit submodule update --init', file=sys.stderr)
52+
raise SystemExit(1)
53+
4754
if sys.platform == 'win32':
4855
from distutils.msvc9compiler import get_build_version
4956
vscomntools_env = 'VS{0}{1}COMNTOOLS'.format(

0 commit comments

Comments
 (0)