Skip to content

Commit dcafd57

Browse files
committed
Remove special casing for Debian. Instead, Debian should make sure the schemes are updated in sysconfig.
1 parent da44ac0 commit dcafd57

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

distutils/command/install.py

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -406,32 +406,17 @@ def dump_dirs(self, msg):
406406

407407
def _load_schemes(self):
408408
"""
409-
Allow sysconfig and runtime behaviors to alter schemes.
409+
Allow sysconfig to alter schemes.
410410
"""
411411

412412
schemes = dict(INSTALL_SCHEMES)
413413

414414
try:
415415
import sysconfig
416416
schemes.update(sysconfig.INSTALL_SCHEMES)
417-
return schemes
418417
except (ImportError, AttributeError):
419418
pass
420419

421-
# debian:
422-
def is_deb_system():
423-
# TODO: how to solicit without an additional parameter to build?
424-
return self.install_layout.lower() == 'deb'
425-
426-
if is_deb_system():
427-
schemes['unix_prefix'] = {
428-
'purelib': '$base/lib/python3/dist-packages',
429-
'platlib': '$platbase/lib/python3/dist-packages',
430-
'headers': '$base/include/python$py_version_short/$dist_name',
431-
'scripts': '$base/bin',
432-
'data' : '$base',
433-
}
434-
435420
return schemes
436421

437422
def finalize_unix(self):

0 commit comments

Comments
 (0)