Opened 2 years ago

Closed 2 years ago

#26967 closed defect (fixed)

Drop distutils dependency

Reported by: atagar Owned by: atagar
Priority: High Milestone:
Component: Archived/Stem Version:
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


Stem uses distutils in a couple spots...

  • stem.util.system's is_available() function uses it to check if executables are available on the path.
  • uses it for installation.

Python now says distutils is being 'phased out'...

I'm not spotting a clear statement on if it's been removed from the standard library nor which version that took place, but regardless seems it's gone. In Debian/Ubuntu distutils now resides in its own package...

That's fine. Our util's usage of it is easy to replace. As for the I'm gonna leave that alone until we drop Python 2.x support. Upstream python might claim distutils is obsolete, but their failure to backport a replacement like setuptools to the 2.x builtins means it's still the best choice for something available by default.

Child Tickets

Change History (1)

comment:1 Changed 2 years ago by atagar

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.