Skip to content

Commit

Permalink
Extend schemes to include deb_system.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Dec 24, 2021
1 parent 115da20 commit 69f8573
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions _distutils_system_mod.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

import os
import sys
import sysconfig

import distutils.sysconfig
import distutils.command.install as orig_install
Expand Down Expand Up @@ -112,10 +113,24 @@ def _posix_lib(standard_lib, libpython, early_prefix, prefix):
return os.path.join(libpython, "site-packages")


def extend_schemes():
sysconfig._INSTALL_SCHEMES.setdefault(
'deb_system',
dict(
purelib='{base}/lib/python3/dist-packages',
platlib='{platbase}/lib/python3/dist-packages',
headers='{base}/include/python{py_version_short}/{dist_name}',
scripts='{base}/bin',
data='{base}',
),
)


def apply_customizations():
orig_install.install = install
orig_install_egg_info.install_egg_info = install_egg_info
distutils.sysconfig._posix_lib = _posix_lib
extend_schemes()


apply_customizations()

0 comments on commit 69f8573

Please sign in to comment.