Skip to content

Commit

Permalink
- version 0.9.2.25
Browse files Browse the repository at this point in the history
 - droping python 2 - PyRadio will only run on python 3
 - fixing #228
  • Loading branch information
s-n-g committed Feb 24, 2024
1 parent da5b99c commit e8e8eaa
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions pyradio/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,6 @@ class PythonExecutable(object):

def __init__(
self,
requested_python_version,
terminate_if_not_found=False):
''' Parameters
==========
Expand All @@ -664,18 +663,16 @@ def __init__(
If True, the program will terminate if python
is not found (default is False)
'''
self.requested_python_version = requested_python_version
self._terminate_if_not_found = terminate_if_not_found
if not platform.system().lower().startswith('win'):
self._check_if_is_debian_based()
self._get_pythons()

def __str__(self):
return 'Is Debian: {0}\nPython: {1}, {2}\nRequested version: {3}'.format(
return 'Is Debian: {0}\nPython: {1}, {2}'.format(
self.is_debian,
self._python[0],
self._python[1],
self.requested_python_version
)

@property
Expand Down Expand Up @@ -1157,7 +1154,10 @@ def _prompt_sudo(self):
def _download_file(self, url, filename):
print(' url: "{}"'.format(url))
print(' filename: "{}"'.format(filename))
if os.path.exists(filename):
if os.path.exists(filename) and not (
filename.endswith('-master.zip') or \
filename.endswith('-devel.zip')
):
print(' [magenta]** file found in cache![/magenta]')
else:
try:
Expand Down Expand Up @@ -1397,7 +1397,6 @@ def _do_it(self, mode='update'):
VERSION = PyRadioInstallPyReleaseVersion

if args.uninstall:
self._get_cache = False
if platform.system().lower().startswith('win'):
''' ok, create BAT file on Windows'''
uni = PyRadioUpdateOnWindows(package=package)
Expand Down

0 comments on commit e8e8eaa

Please sign in to comment.