Skip to content

Commit

Permalink
first mods, then ext list
Browse files Browse the repository at this point in the history
  • Loading branch information
marscher committed May 13, 2019
1 parent 63d42f5 commit 0d8b8d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,15 +321,15 @@ def build_extensions(self):
if __name__ == '__main__':
if parse_setuppy_commands():
# only require numpy and extensions in case of building/installing
metadata['ext_modules'] = extensions()
assert os.path.exists('.git')
# init submodules
# first initialize submodules
if os.path.exists('.git'):
import subprocess
modules = ['pybind11']
cmd = "git submodule update --init {mod}"

for m in modules:
subprocess.check_call(cmd.format(mod=m).split(' '))
# now build extension list.
metadata['ext_modules'] = extensions()

setup(**metadata)

0 comments on commit 0d8b8d5

Please sign in to comment.