@@ -103,7 +103,7 @@ def get_executable(
103
103
version = to_vyper_version (version )
104
104
vyper_bin = get_vvm_install_folder (vvm_binary_path ).joinpath (f"vyper-{ version } " )
105
105
if _get_os_name () == "windows" :
106
- vyper_bin = vyper_bin .with_suffix ( " .exe" )
106
+ vyper_bin = vyper_bin .with_name ( f" { vyper_bin . name } .exe" )
107
107
108
108
if not vyper_bin .exists ():
109
109
raise VyperNotInstalled (
@@ -198,7 +198,11 @@ def get_installed_vyper_versions(vvm_binary_path: Union[Path, str] = None) -> Li
198
198
List of Version objects of installed `vyper` versions.
199
199
"""
200
200
install_path = get_vvm_install_folder (vvm_binary_path )
201
- return sorted ([Version (i .name [6 :]) for i in install_path .glob ("vyper-*" )], reverse = True )
201
+ if _get_os_name () == "windows" :
202
+ version_list = [i .stem [6 :] for i in install_path .glob ("vyper-*" )]
203
+ else :
204
+ version_list = [i .name [6 :] for i in install_path .glob ("vyper-*" )]
205
+ return sorted ([Version (i ) for i in version_list ], reverse = True )
202
206
203
207
204
208
def install_vyper (
@@ -250,7 +254,7 @@ def install_vyper(
250
254
251
255
install_path = get_vvm_install_folder (vvm_binary_path ).joinpath (f"vyper-{ version } " )
252
256
if os_name == "windows" :
253
- install_path = install_path .with_suffix ( " .exe" )
257
+ install_path = install_path .with_name ( f" { install_path . name } .exe" )
254
258
255
259
url = BINARY_DOWNLOAD_BASE .format (version , asset ["name" ])
256
260
content = _download_vyper (url , headers , show_progress )
0 commit comments