Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • P PyAV
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 37
    • Issues 37
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 26
    • Merge requests 26
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PyAV
  • PyAV
  • Merge requests
  • !835

Require Python <3.12 because dependency with distutils

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/WyattBlue/patch-1 into main Dec 09, 2021
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: WyattBlue

The distutils module is being removed in Python 3.121

This patch marks PyAv as only able to install Python versions less than 3.12 in setup.py. This allows pip to know if this version of av is installable with the Python version and act accordingly.

Alternate Approaches

I've also tried ripping out distutils altogether. However, there is so much code that PyAv relies on that removing distutils would be to big of a change to do all at once. I recommend moving away from using the distutils module in setup.py

  1. https://docs.python.org/3/whatsnew/3.10.html#distutils-deprecated ↩

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/WyattBlue/patch-1