Skip to content

Commit

Permalink
[setup] init submodules again
Browse files Browse the repository at this point in the history
  • Loading branch information
marscher committed May 13, 2019
1 parent b7663da commit 6610372
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,4 +323,13 @@ def build_extensions(self):
# only require numpy and extensions in case of building/installing
metadata['ext_modules'] = extensions()

# init submodules
if os.path.exists('.git'):
import subprocess
modules = ['ext/pybind11']
cmd = "git submodule update --init {mod}"

for m in modules:
subprocess.check_call(cmd.format(mod=m).split(' '))

setup(**metadata)

0 comments on commit 6610372

Please sign in to comment.