소스 검색

fix chmod permissions (#194)

Denis Mazur 4 년 전
부모
커밋
d2d849b147
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      setup.py

+ 2 - 1
setup.py

@@ -73,6 +73,7 @@ def libp2p_build_install():
 
 
         result = subprocess.run(['go', 'build', '-o', os.path.join(here, "hivemind/hivemind_cli", "p2pd")],
         result = subprocess.run(['go', 'build', '-o', os.path.join(here, "hivemind/hivemind_cli", "p2pd")],
                                 cwd=os.path.join(tempdir, f'go-libp2p-daemon-{P2PD_VERSION[1:]}', 'p2pd'))
                                 cwd=os.path.join(tempdir, f'go-libp2p-daemon-{P2PD_VERSION[1:]}', 'p2pd'))
+
         if result.returncode:
         if result.returncode:
             raise RuntimeError('Failed to build or install libp2p-daemon:'
             raise RuntimeError('Failed to build or install libp2p-daemon:'
                                f' exited with status code :{result.returncode}')
                                f' exited with status code :{result.returncode}')
@@ -85,7 +86,7 @@ def libp2p_download_install():
         print('Downloading Peer to Peer Daemon')
         print('Downloading Peer to Peer Daemon')
         url = f'https://github.com/learning-at-home/go-libp2p-daemon/releases/download/{P2PD_VERSION}/p2pd'
         url = f'https://github.com/learning-at-home/go-libp2p-daemon/releases/download/{P2PD_VERSION}/p2pd'
         urllib.request.urlretrieve(url, binary_path)
         urllib.request.urlretrieve(url, binary_path)
-        os.chmod(binary_path, 777)
+        os.chmod(binary_path, 0o777)
 
 
 
 
 class Install(install):
 class Install(install):