mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Packaging cleanup: remove conditionals for < 2.6 support.
PEP 370 features and sys.dont_write_bytecode are always available in 3.3; the distutils2 backport still has the conditionals. I also renamed an internal misnamed method and fixed a few things (“packaging2” name, stray print, unused import, fd leak).
This commit is contained in:
parent
37ccd6f794
commit
7724a6c10c
16 changed files with 47 additions and 96 deletions
|
@ -352,5 +352,4 @@ class BCPPCompiler(CCompiler) :
|
|||
try:
|
||||
self.spawn(pp_args)
|
||||
except PackagingExecError as msg:
|
||||
print(msg)
|
||||
raise CompileError(msg)
|
||||
|
|
|
@ -5,7 +5,6 @@ interface for the compiler abstraction model used by packaging.
|
|||
"""
|
||||
|
||||
import os
|
||||
import sys
|
||||
from shutil import move
|
||||
from packaging import logger
|
||||
from packaging.util import split_quoted, execute, newer_group, spawn
|
||||
|
|
|
@ -127,7 +127,7 @@ class UnixCCompiler(CCompiler):
|
|||
executables['ranlib'] = ["ranlib"]
|
||||
|
||||
# Needed for the filename generation methods provided by the base
|
||||
# class, CCompiler. NB. whoever instantiates/uses a particular
|
||||
# class, CCompiler. XXX whoever instantiates/uses a particular
|
||||
# UnixCCompiler instance should set 'shared_lib_ext' -- we set a
|
||||
# reasonable common default here, but it's not necessarily used on all
|
||||
# Unices!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue