Skip to content

Commit

Permalink
Fix LibP2P-Daemon installation in setup.py (#186)
Browse files Browse the repository at this point in the history
* Rename ProtoCompileInstall and ProtoCompileDevelop to Install and Develop
* Install LibP2P-Daemon on setup install and setup develop
* Install Golang in Circle CI builds
* Add P2PD binary to gitignore
  • Loading branch information
dvmazur authored and Maxim Kashirin committed May 14, 2021
1 parent d5e435f commit 5da9588
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,12 @@ def md5(fname, chunk_size=4096):
here = os.path.abspath(os.path.dirname(__file__))


class cd:
"""Context manager for changing the current working directory"""
def __init__(self, newPath):
self.newPath = os.path.expanduser(newPath)

def __enter__(self):
self.savedPath = os.getcwd()
os.chdir(self.newPath)

def __exit__(self, etype, value, traceback):
os.chdir(self.savedPath)
def md5(fname, chunk_size=4096):
hash_md5 = hashlib.md5()
with open(fname, "rb") as f:
for chunk in iter(lambda: f.read(chunk_size), b""):
hash_md5.update(chunk)
return hash_md5.hexdigest()


def proto_compile(output_path):
Expand Down

0 comments on commit 5da9588

Please sign in to comment.