Skip to content

Commit a003c14

Browse files
committed
version 0.9.2.6
- fixing pipx isolated installation - updating docs
1 parent 4a08c06 commit a003c14

File tree

7 files changed

+30
-9
lines changed

7 files changed

+30
-9
lines changed

Changelog

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
2023-05-03 s-n-g
1+
2023-05-08 s-n-g
22
* version 0.9.2.6
33
* using pipx for installation on "externally-managed"
44
python installations
5+
* adding cache for pipx installation (and command line
6+
parameters to handle it)
57
* --list will indicate Group Headers
68
* started working on scheduling
9+
* updating docs
710

811
2023-04-07 s-n-g
912
* version 0.9.2.5

README.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,12 +206,15 @@ <h2 id="requirements">Requirements <span style="padding-left: 10px;"><sup style=
206206
<h2 id="changelog">Changelog <span style="padding-left: 10px;"><sup style="font-size: 50%"><a href="#" title="Go to top of the page">Top</a></sup></span></h2>
207207
<pre style="height: 200px;">
208208

209-
2023-05-03 s-n-g
209+
2023-05-08 s-n-g
210210
* version 0.9.2.6
211211
* using pipx for installation on "externally-managed"
212212
python installations
213+
* adding cache for pipx installation (and command line
214+
parameters to handle it)
213215
* --list will indicate Group Headers
214216
* started working on scheduling
217+
* updating docs
215218

216219
2023-04-07 s-n-g
217220
* version 0.9.2.5

devel/build_install_pyradio

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,8 @@ function create_installation_type_file(){
205205
OLD=$(find ~/.local/lib -type d -name "pyradio*" 2>/dev/null | grep -v pipx | grep -v venvs)
206206
if [ ! -z "$OLD" ]
207207
then
208+
if [ "$TO_PYTHON" = "2" ]
209+
then
208210
echo
209211
echo
210212
echo "The following pyradio directories have been found:
@@ -213,6 +215,19 @@ $OLD
213215
They probably belong to an older non-pipx installation
214216
and they should be deleted.
215217
"
218+
else
219+
msg="
220+
221+
The following [magenta]pyradio[/magenta] directories have been found:
222+
[red]$OLD[/red]
223+
224+
They probably belong to an older non-pipx installation
225+
and they [red]should be deleted[/red].
226+
"
227+
python${TO_PYTHON} -c \
228+
'import sys; from rich import print; print(sys.argv[1])' \
229+
"${msg}"
230+
fi
216231
fi
217232
fi
218233
}
@@ -439,7 +454,7 @@ else
439454
inst_type=1
440455
else
441456
pipx install $PIPX_EDITABLE --force . || pipx_error
442-
pipx runpip pyradio install -r requirements_pipx.txt
457+
cat requirements_pipx.txt | sed -e 's/#.*//' | xargs pipx inject pyradio
443458
inst_type=2
444459
fi
445460
fi
@@ -503,7 +518,7 @@ then
503518
fi
504519
mkdir -p ~/.config/pyradio/data
505520
cp devel/pyradio.png ~/.config/pyradio/data
506-
[ "$TO_PYTHON" == "2" ] || create_installation_type_file
521+
[ -z $PIPX ] || create_installation_type_file
507522
else
508523
do_exit
509524
exit 1

linux-pipx.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ <h2 id="debian-and-derivatives">Debian and derivatives <span style="padding-left
119119
<p>Then install pipx:</p>
120120
<pre>sudo apt-get install pipx</pre>
121121
<p>If that fails, execute:</p>
122-
<pre>pyton3 -m pip install pipx</pre>
122+
<pre>python3 -m pip install pipx</pre>
123123
<p>Finally, execute:</p>
124124
<pre>python3 -m pipx ensurepath</pre>
125125
<p>and exit the terminal.</p>

linux-pipx.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ sudo apt-get install pipx
109109
If that fails, execute:
110110

111111
```
112-
pyton3 -m pip install pipx
112+
python3 -m pip install pipx
113113
```
114114

115115
Finally, execute:

pyradio/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -884,14 +884,14 @@ def shell():
884884
''' curses is off '''
885885
if pyradio.setup_return_status:
886886
if pyradio_config.WIN_UNINSTALL and platform.startswith('win'):
887-
# doing it this way so that pyton2 does not break (#153)
887+
# doing it this way so that python2 does not break (#153)
888888
from .win import win_press_any_key_to_unintall
889889
win_press_any_key_to_unintall()
890890
sys.exit()
891891

892892
if pyradio_config.WIN_PRINT_PATHS and platform.startswith('win'):
893893
''' print exe path '''
894-
# doing it this way so that pyton2 does not break (#153)
894+
# doing it this way so that python2 does not break (#153)
895895
from .win import win_print_exe_paths
896896
print('')
897897
win_print_exe_paths()

pyradio/win.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def win_print_exe_paths():
6262
print(' [green]{}[/green]'.format(exe[0]))
6363
else:
6464
print(' [green]{}[/green]'.format(exe[1]))
65-
# doing it this way so that pyton2 does not break (#153)
65+
# doing it this way so that python2 does not break (#153)
6666
from .win import press_any_key_to_continue
6767
print('\nPress any key to exit...', end='', flush=True)
6868
getwch()

0 commit comments

Comments
 (0)