Skip to content

Commit

Permalink
Merged revisions 72671 via svnmerge from
Browse files Browse the repository at this point in the history
svn+ssh://[email protected]/python/trunk

........
  r72671 | antoine.pitrou | 2009-05-15 19:27:30 +0200 (ven., 15 mai 2009) | 3 lines

  Fix bootstrapping by removing uses of the copy module in distutils
........
  • Loading branch information
pitrou committed May 15, 2009
1 parent 6e61006 commit 56a00de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
11 changes: 5 additions & 6 deletions Lib/distutils/ccompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
__revision__ = "$Id$"

import sys, os, re
from copy import copy
from distutils.errors import *
from distutils.spawn import spawn
from distutils.file_util import move_file
Expand Down Expand Up @@ -233,7 +232,7 @@ def set_include_dirs(self, dirs):
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):
"""Add 'libname' to the list of libraries that will be included in
Expand All @@ -257,7 +256,7 @@ def set_libraries(self, libnames):
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):
"""Add 'dir' to the list of directories that will be searched for
Expand All @@ -272,7 +271,7 @@ def set_library_dirs(self, dirs):
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):
"""Add 'dir' to the list of directories that will be searched for
Expand All @@ -286,7 +285,7 @@ def set_runtime_library_dirs(self, dirs):
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):
"""Add 'object' to the list of object files (or analogues, such as
Expand All @@ -302,7 +301,7 @@ def set_link_objects(self, objects):
files that the linker may include by default (such as system
libraries).
"""
self.objects = copy(objects)
self.objects = objects[:]


# -- Private utility methods --------------------------------------
Expand Down
3 changes: 1 addition & 2 deletions Lib/distutils/dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
__revision__ = "$Id$"

import sys, os, re
from copy import copy

try:
import warnings
Expand Down Expand Up @@ -521,7 +520,7 @@ def _parse_command_opts (self, parser, args):
# merge it in with the global negative aliases.
negative_opt = self.negative_opt
if hasattr(cmd_class, 'negative_opt'):
negative_opt = copy(negative_opt)
negative_opt = negative_opt.copy()
negative_opt.update(cmd_class.negative_opt)

# Check for help_options in command class. They have a different
Expand Down

0 comments on commit 56a00de

Please sign in to comment.