Skip to content

Commit

Permalink
Error if submodules are not initialized yet
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlia committed Jun 5, 2014
1 parent 1a80a4c commit 3de94a4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ sassc/
sass-spec/

# libsass-python
._.DS_Store
build/
dist/
docs/_build
Expand Down
9 changes: 8 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from __future__ import with_statement
from __future__ import print_function, with_statement

import ast
import distutils.cmd
Expand Down Expand Up @@ -44,6 +44,13 @@
sources = ['pysass.c']
sources.extend(libsass_sources)

if not os.path.isdir('sass2scss') and os.path.isdir('.git'):
print('Submodules seem not initialized yet.'
'You can initialize it by the following command:',
file=sys.stderr)
print('\tgit submodule update --init', file=sys.stderr)
raise SystemExit(1)

if sys.platform == 'win32':
from distutils.msvc9compiler import get_build_version
vscomntools_env = 'VS{0}{1}COMNTOOLS'.format(
Expand Down

0 comments on commit 3de94a4

Please sign in to comment.