Skip to content
Snippets Groups Projects
Commit 0b4b2f17 authored by Jannis Konrad's avatar Jannis Konrad
Browse files

only run "git submodule update --init" if tinydtls is not yet checked out

parent 7eab6bbc
No related branches found
No related tags found
No related merge requests found
......@@ -10,13 +10,14 @@ class prepare_tinydtls(build_ext):
def run(self):
def run_command(args):
print("Running:", " ".join(args))
subprocess.check_call(args, cwd=os.path.join(os.path.dirname(__file__), "./DTLSSocket/tinydtls"))
subprocess.check_call(args, cwd=os.path.join(os.path.dirname(__file__), "DTLSSocket','tinydtls"))
commands = [
["git", "submodule", "update", "--init"],
["autoconf"],
["autoheader"],
["./configure", "--without-ecc"],
]
if not os.path.exists(os.path.join(os.path.dirname(__file__), 'DTLSSocket','tinydtls','dtls.c')):
["git", "submodule", "update", "--init"],
for command in commands:
run_command(command)
build_ext.run(self)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment