Skip to content

Commit

Permalink
Merge pull request #1208 from seeM/fix-1182
Browse files Browse the repository at this point in the history
fix: `nbdev_install_quarto` may install and remove unrelated packages
  • Loading branch information
seeM authored Nov 8, 2022
2 parents f0fb8d2 + 2c86cbe commit 12d09dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions nbdev/quarto.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ def _sprun(cmd):

def _install_linux():
system(f'curl -LO {BASE_QUARTO_URL}quarto-linux-amd64.deb')
system('sudo dpkg -i *64.deb && rm *64.deb')
system('sudo dpkg -i quarto-linux-amd64.deb && rm quarto-linux-amd64.deb')

def _install_mac():
system(f'curl -LO {BASE_QUARTO_URL}quarto-macos.pkg')
system('sudo installer -pkg quarto-macos.pkg -target /')
system('sudo installer -pkg quarto-macos.pkg -target / && rm quarto-macos.pkg')

@call_parse
def install_quarto():
Expand Down
4 changes: 2 additions & 2 deletions nbs/api/quarto.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@
"\n",
"def _install_linux():\n",
" system(f'curl -LO {BASE_QUARTO_URL}quarto-linux-amd64.deb')\n",
" system('sudo dpkg -i *64.deb && rm *64.deb')\n",
" system('sudo dpkg -i quarto-linux-amd64.deb && rm quarto-linux-amd64.deb')\n",
" \n",
"def _install_mac():\n",
" system(f'curl -LO {BASE_QUARTO_URL}quarto-macos.pkg')\n",
" system('sudo installer -pkg quarto-macos.pkg -target /')\n",
" system('sudo installer -pkg quarto-macos.pkg -target / && rm quarto-macos.pkg')\n",
"\n",
"@call_parse\n",
"def install_quarto():\n",
Expand Down

0 comments on commit 12d09dd

Please sign in to comment.