Skip to content

Commit 6b74adc

Browse files
authored
Merge pull request #134 from bkemper24/main
tar2conda changes for 3.10
2 parents 84600e8 + 154c17f commit 6b74adc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cicd/tar2conda.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,13 @@ def main(url, args):
262262
if m.group(2).split('.')[0] == '_pyswat':
263263
continue
264264
platform = m.group(1)
265+
pvlist = list(m.group(3) or '27')
266+
if len(pvlist) < 2:
267+
pyv = pvlist[0]
268+
else:
269+
pyv = ".".join((pvlist[0],"".join(pvlist[1:len(pvlist)])))
265270
versions.append(dict(extension=m.group(2),
266-
pyversion='.'.join(list(m.group(3) or '27'))))
271+
pyversion=pyv))
267272

268273
# # Filter version list
269274
# if not versions:

0 commit comments

Comments
 (0)