@@ -653,7 +653,6 @@ class PythonExecutable(object):
653
653
654
654
def __init__ (
655
655
self ,
656
- requested_python_version ,
657
656
terminate_if_not_found = False ):
658
657
''' Parameters
659
658
==========
@@ -664,18 +663,16 @@ def __init__(
664
663
If True, the program will terminate if python
665
664
is not found (default is False)
666
665
'''
667
- self .requested_python_version = requested_python_version
668
666
self ._terminate_if_not_found = terminate_if_not_found
669
667
if not platform .system ().lower ().startswith ('win' ):
670
668
self ._check_if_is_debian_based ()
671
669
self ._get_pythons ()
672
670
673
671
def __str__ (self ):
674
- return 'Is Debian: {0}\n Python: {1}, {2}\n Requested version: {3} ' .format (
672
+ return 'Is Debian: {0}\n Python: {1}, {2}' .format (
675
673
self .is_debian ,
676
674
self ._python [0 ],
677
675
self ._python [1 ],
678
- self .requested_python_version
679
676
)
680
677
681
678
@property
@@ -1157,7 +1154,10 @@ def _prompt_sudo(self):
1157
1154
def _download_file (self , url , filename ):
1158
1155
print (' url: "{}"' .format (url ))
1159
1156
print (' filename: "{}"' .format (filename ))
1160
- if os .path .exists (filename ):
1157
+ if os .path .exists (filename ) and not (
1158
+ filename .endswith ('-master.zip' ) or \
1159
+ filename .endswith ('-devel.zip' )
1160
+ ):
1161
1161
print (' [magenta]** file found in cache![/magenta]' )
1162
1162
else :
1163
1163
try :
@@ -1397,7 +1397,6 @@ def _do_it(self, mode='update'):
1397
1397
VERSION = PyRadioInstallPyReleaseVersion
1398
1398
1399
1399
if args .uninstall :
1400
- self ._get_cache = False
1401
1400
if platform .system ().lower ().startswith ('win' ):
1402
1401
''' ok, create BAT file on Windows'''
1403
1402
uni = PyRadioUpdateOnWindows (package = package )
0 commit comments