Skip to content

Commit

Permalink
Merge pull request #103 from deadsnakes/adjust-distutils
Browse files Browse the repository at this point in the history
fix distutils install
  • Loading branch information
asottile authored Jun 2, 2023
2 parents 613950f + 069056f commit f1d618c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/install-python
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ def main() -> int:
version = args.version
ppa = 'ppa:deadsnakes/ppa'

major_s, minor_s = version.split('.')
major, minor = int(major_s), int(minor_s)
py = f'python{version}'
packages = [f'{py}-dev', f'{py}-venv']
if float(version) >= 3.9:
if (major, minor) < (3, 12):
packages.append(f'{py}-distutils')
else:
packages.append('python3-distutils')
if args.debug:
packages.append(f'{py}-dbg')

Expand Down

0 comments on commit f1d618c

Please sign in to comment.