Skip to content

Commit 817a143

Browse files
committed
Change pipx update method
1 parent 76c06e0 commit 817a143

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/sinol_make/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,17 +109,18 @@ def main():
109109
'https://github.com/sio2project/sinol-make/#reporting-bugs-and-contributing-code')
110110
finally:
111111
if new_version is not None:
112-
install_method = 'pipx' if util.is_probably_installed_by_pipx() else 'pip'
112+
install_method = 'pipx upgrade sinol-make' if util.is_probably_installed_by_pipx() \
113+
else 'pip install sinol-make --upgrade'
113114
if not util.is_dev(new_version):
114115
print(util.warning(
115116
f'New version of sinol-make is available (your version: {__version__}, available version: '
116117
f'{new_version}).\n'
117118
f'Changelog can be found at https://github.com/sio2project/sinol-make/releases.\n'
118-
f'You can update sinol-make by running `{install_method} install sinol-make --upgrade`.'))
119+
f'You can update sinol-make by running `{install_method}`.'))
119120
elif util.is_dev(new_version):
120121
print(util.warning(
121122
f'New development version of sinol-make is available (your version: {__version__}, available '
122123
f'version: {new_version}).\n'
123124
f'Changelog can be found at https://github.com/sio2project/sinol-make/releases.\n'
124-
f'You can update sinol-make by running `{install_method} install sinol-make --pre --upgrade`.'
125+
f'You can update sinol-make by running `{install_method} --pre`.'
125126
))

0 commit comments

Comments
 (0)