File tree Expand file tree Collapse file tree 7 files changed +30
-9
lines changed Expand file tree Collapse file tree 7 files changed +30
-9
lines changed Original file line number Diff line number Diff line change 1
- 2023-05-03 s-n-g
1
+ 2023-05-08 s-n-g
2
2
* version 0.9.2.6
3
3
* using pipx for installation on "externally-managed"
4
4
python installations
5
+ * adding cache for pipx installation (and command line
6
+ parameters to handle it)
5
7
* --list will indicate Group Headers
6
8
* started working on scheduling
9
+ * updating docs
7
10
8
11
2023-04-07 s-n-g
9
12
* version 0.9.2.5
Original file line number Diff line number Diff line change @@ -206,12 +206,15 @@ <h2 id="requirements">Requirements <span style="padding-left: 10px;"><sup style=
206
206
< 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 >
207
207
< pre style ="height: 200px; ">
208
208
209
- 2023-05-03 s-n-g
209
+ 2023-05-08 s-n-g
210
210
* version 0.9.2.6
211
211
* using pipx for installation on "externally-managed"
212
212
python installations
213
+ * adding cache for pipx installation (and command line
214
+ parameters to handle it)
213
215
* --list will indicate Group Headers
214
216
* started working on scheduling
217
+ * updating docs
215
218
216
219
2023-04-07 s-n-g
217
220
* version 0.9.2.5
Original file line number Diff line number Diff line change @@ -205,6 +205,8 @@ function create_installation_type_file(){
205
205
OLD=$( find ~ /.local/lib -type d -name " pyradio*" 2> /dev/null | grep -v pipx | grep -v venvs)
206
206
if [ ! -z " $OLD " ]
207
207
then
208
+ if [ " $TO_PYTHON " = " 2" ]
209
+ then
208
210
echo
209
211
echo
210
212
echo " The following pyradio directories have been found:
@@ -213,6 +215,19 @@ $OLD
213
215
They probably belong to an older non-pipx installation
214
216
and they should be deleted.
215
217
"
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
216
231
fi
217
232
fi
218
233
}
439
454
inst_type=1
440
455
else
441
456
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
443
458
inst_type=2
444
459
fi
445
460
fi
503
518
fi
504
519
mkdir -p ~ /.config/pyradio/data
505
520
cp devel/pyradio.png ~ /.config/pyradio/data
506
- [ " $TO_PYTHON " == " 2 " ] || create_installation_type_file
521
+ [ -z $PIPX ] || create_installation_type_file
507
522
else
508
523
do_exit
509
524
exit 1
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ <h2 id="debian-and-derivatives">Debian and derivatives <span style="padding-left
119
119
< p > Then install pipx:</ p >
120
120
< pre > sudo apt-get install pipx</ pre >
121
121
< p > If that fails, execute:</ p >
122
- < pre > pyton3 -m pip install pipx</ pre >
122
+ < pre > python3 -m pip install pipx</ pre >
123
123
< p > Finally, execute:</ p >
124
124
< pre > python3 -m pipx ensurepath</ pre >
125
125
< p > and exit the terminal.</ p >
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ sudo apt-get install pipx
109
109
If that fails, execute:
110
110
111
111
```
112
- pyton3 -m pip install pipx
112
+ python3 -m pip install pipx
113
113
```
114
114
115
115
Finally, execute:
Original file line number Diff line number Diff line change @@ -884,14 +884,14 @@ def shell():
884
884
''' curses is off '''
885
885
if pyradio .setup_return_status :
886
886
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)
888
888
from .win import win_press_any_key_to_unintall
889
889
win_press_any_key_to_unintall ()
890
890
sys .exit ()
891
891
892
892
if pyradio_config .WIN_PRINT_PATHS and platform .startswith ('win' ):
893
893
''' 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)
895
895
from .win import win_print_exe_paths
896
896
print ('' )
897
897
win_print_exe_paths ()
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ def win_print_exe_paths():
62
62
print (' [green]{}[/green]' .format (exe [0 ]))
63
63
else :
64
64
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)
66
66
from .win import press_any_key_to_continue
67
67
print ('\n Press any key to exit...' , end = '' , flush = True )
68
68
getwch ()
You can’t perform that action at this time.
0 commit comments