X Tutup
Skip to content

Commit a0f9530

Browse files
committed
getting clother to a just-zipped version
1 parent 357c2fb commit a0f9530

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

make.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1551,8 +1551,17 @@ def make_all(build_number, release_level, pyver, architecture,
15511551
install_options=install_options + find_list,
15521552
flavor=flavor, docsdirs=docsdirs)
15531553
# define a pre-defined winpydir, instead of having to guess
1554-
my_winpydir = ('winp' + ('%s' % architecture) +'-' + pyver +
1555-
'.x.' + ('%s' %build_number) ) # + flavor + release_level)
1554+
1555+
# extract the python subversion to get WPy64-3671b1
1556+
dist.python_fname = dist.get_package_fname(
1557+
r'python-([0-9\.rcba]*)((\.|\-)amd64)?\.(msi|zip)')
1558+
my_x = ''.join(dist.python_fname.replace('.amd64','').split('.')[-2:-1])
1559+
while not my_x.isdigit() and len(my_x)>0:
1560+
my_x = my_x[:-1]
1561+
1562+
my_winpydir = ('WPy' + ('%s' % architecture) +'-' + pyver.replace('.','') +
1563+
'' + my_x + '' + ('%s' %build_number) ) + release_level
1564+
# + flavor
15561565

15571566
dist.make(remove_existing=remove_existing, requirements=requirements,
15581567
my_winpydir=my_winpydir)

0 commit comments

Comments
 (0)
X Tutup