mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
Fix bootstrapping by removing uses of the copy module in distutils
This commit is contained in:
parent
775fd66d7b
commit
f541378d13
2 changed files with 6 additions and 8 deletions
|
@ -7,7 +7,6 @@ __revision__ = "$Id$"
|
|||
|
||||
import sys, os, re
|
||||
from types import *
|
||||
from copy import copy
|
||||
from distutils.errors import *
|
||||
from distutils.spawn import spawn
|
||||
from distutils.file_util import move_file
|
||||
|
@ -253,7 +252,7 @@ class CCompiler:
|
|||
any list of standard include directories that the compiler may
|
||||
search by default.
|
||||
"""
|
||||
self.include_dirs = copy (dirs)
|
||||
self.include_dirs = dirs[:]
|
||||
|
||||
|
||||
def add_library (self, libname):
|
||||
|
@ -278,7 +277,7 @@ class CCompiler:
|
|||
not affect any standard system libraries that the linker may
|
||||
include by default.
|
||||
"""
|
||||
self.libraries = copy (libnames)
|
||||
self.libraries = libnames[:]
|
||||
|
||||
|
||||
def add_library_dir (self, dir):
|
||||
|
@ -294,7 +293,7 @@ class CCompiler:
|
|||
strings). This does not affect any standard library search path
|
||||
that the linker may search by default.
|
||||
"""
|
||||
self.library_dirs = copy (dirs)
|
||||
self.library_dirs = dirs[:]
|
||||
|
||||
|
||||
def add_runtime_library_dir (self, dir):
|
||||
|
@ -309,7 +308,7 @@ class CCompiler:
|
|||
standard search path that the runtime linker may search by
|
||||
default.
|
||||
"""
|
||||
self.runtime_library_dirs = copy (dirs)
|
||||
self.runtime_library_dirs = dirs[:]
|
||||
|
||||
|
||||
def add_link_object (self, object):
|
||||
|
@ -326,7 +325,7 @@ class CCompiler:
|
|||
files that the linker may include by default (such as system
|
||||
libraries).
|
||||
"""
|
||||
self.objects = copy (objects)
|
||||
self.objects = objects[:]
|
||||
|
||||
|
||||
# -- Private utility methods --------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue