Skip to content

Commit

Permalink
Add a hook on import of distutils that will allow Debian to override …
Browse files Browse the repository at this point in the history
…the default behavior. Fixes #2.
  • Loading branch information
jaraco committed Nov 13, 2021
1 parent 26db6fe commit 888ab6d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions distutils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,15 @@
"""

import sys
import importlib

__version__ = sys.version[:sys.version.index(' ')]


try:
# Allow Debian (only) to customize system behavior.
# Ref pypa/distutils#2. This hook is deprecated and
# no other environments should use it.
importlib.import_module('_distutils_system_mod')
except ImportError:
pass

0 comments on commit 888ab6d

Please sign in to comment.