Skip to content

Commit f15b152

Browse files
authored
Create resinstall.sh
- helper file
1 parent 1dd7399 commit f15b152

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

resinstall.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash
2+
3+
# Re-install the package. By running './reinstall.sh'
4+
#
5+
# Note that llavaction uses the build
6+
# system specified in
7+
# PEP517 https://peps.python.org/pep-0517/ and
8+
# PEP518 https://peps.python.org/pep-0518/
9+
# and hence there is no setup.py file.
10+
11+
set -e # abort on error
12+
13+
pip uninstall -y llavaction
14+
15+
# Get version
16+
VERSION=0.0.1
17+
echo "Upgrading to LLaVAction v${VERSION}"
18+
19+
# Upgrade the build system (PEP517/518 compatible)
20+
python3 -m pip install virtualenv
21+
python3 -m pip install --upgrade build
22+
python3 -m build --sdist --wheel .
23+
24+
# Reinstall the package with most recent version
25+
pip install --upgrade --no-cache-dir "dist/llavaction-${VERSION}-py3-none-any.whl"

0 commit comments

Comments
 (0)