Skip to content

Commit

Permalink
Merge pull request #3 from DeirhX/master
Browse files Browse the repository at this point in the history
Added FreeBSD. Visibly deprecated activate_signature so people can see they need to comment it out.
  • Loading branch information
ZeChrales authored Nov 6, 2016
2 parents a72a00b + 6a64ac2 commit 0fee4e4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ __pycache__/
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
Expand Down
Binary file added pgoapi/lib/libniantichash-freebsd-64.so
Binary file not shown.
7 changes: 5 additions & 2 deletions pgoapi/pgoapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,11 @@ def create_request(self):
return request

def activate_signature(self, signature_lib_path=None, hash_lib_path=None):
if signature_lib_path: self.set_signature_lib(signature_lib_path)
if hash_lib_path: self.set_hash_lib(hash_lib_path)
raise Exception("activate_signature is deprecated, binaries compatible with 0.41 API are now required." +
"\r\n Comment out all calls to activate_signature to let them be autodetected. " +
"\r\n Use set_signature_lib and set_hash_lib to override if needed.")
# if signature_lib_path: self.set_signature_lib(signature_lib_path)
# if hash_lib_path: self.set_hash_lib(hash_lib_path)

def set_signature_lib(self, signature_lib_path):
self._signature_lib = signature_lib_path
Expand Down

0 comments on commit 0fee4e4

Please sign in to comment.