@@ -354,7 +354,6 @@ def __init__(
354
354
# .groups()[0]
355
355
# .split('.')
356
356
#)
357
- self .python_version = 'winUNKNOWN' # '.'.join(vlst[:2])
358
357
self .python_fullversion = 'winUNKNOWN' # '.'.join(vlst[:3])
359
358
360
359
@property
@@ -2034,22 +2033,20 @@ def make(
2034
2033
self .python_fname ,
2035
2034
self .python_name ,
2036
2035
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
2044
2037
)
2045
2038
if my_winpydir is None :
2046
2039
self .winpydir = osp .join (
2047
- self .target , self .distname
2040
+ self .target , self .distname # PyPy to delete
2048
2041
)
2049
2042
else :
2050
2043
self .winpydir = osp .join (
2051
2044
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
+ )
2053
2050
if (
2054
2051
osp .isdir (self .winpydir )
2055
2052
and remove_existing
@@ -2072,12 +2069,17 @@ def make(
2072
2069
2073
2070
if remove_existing and not self .simulation :
2074
2071
self ._extract_python () # unzip Python interpreter
2072
+
2075
2073
self .distribution = wppm .Distribution (
2076
2074
self .python_dir ,
2077
2075
verbose = self .verbose ,
2078
2076
indent = True ,
2079
2077
)
2080
2078
2079
+ # PyPy: get Fullversion from the executable
2080
+ self .python_fullversion = utils .get_python_long_version (
2081
+ self .distribution .target )
2082
+
2081
2083
if remove_existing :
2082
2084
if not self .simulation :
2083
2085
# self._add_msvc_files() # replaced per msvc_runtime package
0 commit comments