Skip to content

Commit af22191

Browse files
committed
Verified build hook working via github pip dist. Unpackage script has a typo.
1 parent 2314e5f commit af22191

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/python_redlines/engines.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,23 +40,23 @@ def _unzip_binary(self):
4040
zip_name = f"linux-{arch}-{__version__}.tar.gz"
4141
binary_name = 'linux-x64/redlines'
4242
zip_path = os.path.join(binaries_path, zip_name)
43-
if not os.path.exists(zip_path):
43+
if os.path.exists(zip_path):
4444
with tarfile.open(zip_path, 'r:gz') as tar_ref:
4545
tar_ref.extractall(target_path)
4646

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

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

0 commit comments

Comments
 (0)