Skip to content

Commit 069056f

Browse files
committed
fix distutils install
1 parent 613950f commit 069056f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/install-python

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ def main() -> int:
4747
version = args.version
4848
ppa = 'ppa:deadsnakes/ppa'
4949

50+
major_s, minor_s = version.split('.')
51+
major, minor = int(major_s), int(minor_s)
5052
py = f'python{version}'
5153
packages = [f'{py}-dev', f'{py}-venv']
52-
if float(version) >= 3.9:
54+
if (major, minor) < (3, 12):
5355
packages.append(f'{py}-distutils')
54-
else:
55-
packages.append('python3-distutils')
5656
if args.debug:
5757
packages.append(f'{py}-dbg')
5858

0 commit comments

Comments
 (0)