Skip to content

Commit

Permalink
linux pip install: accommodate different tarball structure
Browse files Browse the repository at this point in the history
  • Loading branch information
cscheid committed Oct 25, 2023
1 parent 91efc04 commit 5eb78d9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ def download_quarto(version):
import zipfile
with zipfile.ZipFile(name, 'r') as zip_ref:
zip_ref.extractall(output_location)
elif suffix.startswith("linux"):
import tarfile
with tarfile.open(name) as tf:
tf.extractall(Path(output_location).parent.resolve())
else:
import tarfile
with tarfile.open(name) as tf:
Expand Down

0 comments on commit 5eb78d9

Please sign in to comment.