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
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):
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):
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):
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):
files that the linker may include by default (such as system
libraries).
"""
- self.objects = copy (objects)
+ self.objects = objects[:]
# -- Private utility methods --------------------------------------
import sys, os, string, re
from types import *
-from copy import copy
try:
import warnings
# 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