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

fix conditional build

parent 0792ea03
No related branches found
No related tags found
No related merge requests found
recursive-include DTLSSocket/tinydtls *.h LICENSE ABOUT.md configure.ac CONTRIBUTING.md README Makefile.in doc/Doxyfile.in
include DTLSSocket/dtls.pyx LICENSE
include DTLSSocket/dtls.pyx DTLSSocket/tdtls.pxd LICENSE
......@@ -17,14 +17,14 @@ class prepare_tinydtls(build_ext):
["./configure", "--without-ecc"],
]
if not os.path.exists(os.path.join(os.path.dirname(__file__), 'DTLSSocket','tinydtls','dtls.c')):
["git", "submodule", "update", "--init"],
run_command(["git", "submodule", "update", "--init"])
for command in commands:
run_command(command)
build_ext.run(self)
cy_build = cythonize([
Extension("DTLSSocket.dtls",
["DTLSSocket/dtls.pyx", "DTLSSocket/tdtls.pxd",
["DTLSSocket/dtls.pyx",
"DTLSSocket/tinydtls/dtls.c", "DTLSSocket/tinydtls/crypto.c",
"DTLSSocket/tinydtls/ccm.c", "DTLSSocket/tinydtls/hmac.c", "DTLSSocket/tinydtls/netq.c",
"DTLSSocket/tinydtls/peer.c", "DTLSSocket/tinydtls/dtls_time.c",
......
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