Skip to content

Commit

Permalink
add 'setup.py speed'
Browse files Browse the repository at this point in the history
  • Loading branch information
warner committed Jan 23, 2015
1 parent 74ad03e commit 9767304
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/pake2/_version.py
/MANIFEST
/dist/
/build/
15 changes: 15 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,21 @@ def do_test(self, which):
return rc
cmdclass["test"] = Test

class Speed(Command):
description = "run speed benchmarks"
user_options = []
boolean_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
p = subprocess.Popen([sys.executable, "spake2/bench_spake2.py"])
rc = p.wait()
if rc != 0:
sys.exit(rc)
cmdclass["speed"] = Speed

setup(name="spake2",
version=versioneer.get_version(),
description="SPAKE2 password-authenticated key exchange (pure python)",
Expand Down

0 comments on commit 9767304

Please sign in to comment.