@@ -354,7 +354,6 @@ def __init__(
354354 # .groups()[0]
355355 # .split('.')
356356 #)
357- self .python_version = 'winUNKNOWN' # '.'.join(vlst[:2])
358357 self .python_fullversion = 'winUNKNOWN' # '.'.join(vlst[:3])
359358
360359 @property
@@ -2034,22 +2033,20 @@ def make(
20342033 self .python_fname ,
20352034 self .python_name ,
20362035 self .distname ,
2037- self .python_version ,
2038- self .python_fullversion ,
2039- )
2040- # Create the WinPython base directory
2041- self ._print (
2042- "Creating WinPython %s base directory"
2043- % self .python_version
2036+ self .python_fullversion , # PyPy to delete or move
20442037 )
20452038 if my_winpydir is None :
20462039 self .winpydir = osp .join (
2047- self .target , self .distname
2040+ self .target , self .distname # PyPy to delete
20482041 )
20492042 else :
20502043 self .winpydir = osp .join (
20512044 self .target , my_winpydir
2052- )
2045+ ) # Create/re-create the WinPython base directory
2046+ self ._print (
2047+ "Creating WinPython %s base directory"
2048+ % my_winpydir
2049+ )
20532050 if (
20542051 osp .isdir (self .winpydir )
20552052 and remove_existing
@@ -2072,12 +2069,17 @@ def make(
20722069
20732070 if remove_existing and not self .simulation :
20742071 self ._extract_python () # unzip Python interpreter
2072+
20752073 self .distribution = wppm .Distribution (
20762074 self .python_dir ,
20772075 verbose = self .verbose ,
20782076 indent = True ,
20792077 )
20802078
2079+ # PyPy: get Fullversion from the executable
2080+ self .python_fullversion = utils .get_python_long_version (
2081+ self .distribution .target )
2082+
20812083 if remove_existing :
20822084 if not self .simulation :
20832085 # self._add_msvc_files() # replaced per msvc_runtime package
0 commit comments