Skip to content

Commit

Permalink
Verified build hook working via github pip dist. Unpackage script has…
Browse files Browse the repository at this point in the history
… a typo.
  • Loading branch information
JSv4 committed Apr 1, 2024
1 parent 2314e5f commit af22191
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/python_redlines/engines.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,23 +40,23 @@ def _unzip_binary(self):
zip_name = f"linux-{arch}-{__version__}.tar.gz"
binary_name = 'linux-x64/redlines'
zip_path = os.path.join(binaries_path, zip_name)
if not os.path.exists(zip_path):
if os.path.exists(zip_path):
with tarfile.open(zip_path, 'r:gz') as tar_ref:
tar_ref.extractall(target_path)

elif os_name == 'windows':
zip_name = f"win-{arch}-{__version__}.zip"
binary_name = 'win-x64/redlines.exe'
zip_path = os.path.join(binaries_path, zip_name)
if not os.path.exists(zip_path):
if os.path.exists(zip_path):
with zipfile.ZipFile(zip_path, 'r') as zip_ref:
zip_ref.extractall(target_path)

elif os_name == 'darwin':
zip_name = f"osx-{arch}-{__version__}.tar.gz"
binary_name = 'osx-x64/redlines'
zip_path = os.path.join(binaries_path, zip_name)
if not os.path.exists(zip_path):
if os.path.exists(zip_path):
with tarfile.open(zip_path, 'r:gz') as tar_ref:
tar_ref.extractall(target_path)

Expand Down

0 comments on commit af22191

Please sign in to comment.