'set_final_options()' to 'finalize_options()'.
"compile extensions and libraries with debugging information"),
]
- def set_default_options (self):
+ def initialize_options (self):
self.build_base = 'build'
# these are decided only after 'build_base' has its final value
# (unless overridden by the user or client)
self.build_platlib = None
self.debug = None
- def set_final_options (self):
+ def finalize_options (self):
# 'build_lib' and 'build_platlib' just default to 'lib' and
# 'platlib' under the base build directory
if self.build_lib is None:
"compile with debugging information"),
]
- def set_default_options (self):
+ def initialize_options (self):
# List of libraries to build
self.libraries = None
self.undef = None
self.debug = None
- # set_default_options()
+ # initialize_options()
- def set_final_options (self):
+ def finalize_options (self):
self.set_undefined_options ('build',
('debug', 'debug'))
self.libraries = self.distribution.libraries
# XXX same as for build_ext -- what about 'self.define' and
# 'self.undef' ?
- # set_final_options()
+ # finalize_options()
def run (self):
# structure
# - that data structure (in this case, a list of 2-tuples)
# will then be present in the command object by the time
- # we get to set_final_options() (i.e. the constructor
+ # we get to finalize_options() (i.e. the constructor
# takes care of both command-line and client options
- # in between set_default_options() and set_final_options())
+ # in between initialize_options() and finalize_options())
user_options = [
('build-dir=', 'd',
]
- def set_default_options (self):
+ def initialize_options (self):
self.extensions = None
self.build_dir = None
self.package = None
self.debug = None
- def set_final_options (self):
+ def finalize_options (self):
from distutils import sysconfig
self.set_undefined_options ('build',
# XXX how the heck are 'self.define' and 'self.undef' supposed to
# be set?
- # set_final_options ()
+ # finalize_options ()
def run (self):
"compile with debugging information"),
]
- def set_default_options (self):
+ def initialize_options (self):
# List of libraries to build
self.libraries = None
self.undef = None
self.debug = None
- # set_default_options()
+ # initialize_options()
- def set_final_options (self):
+ def finalize_options (self):
self.set_undefined_options ('build',
('debug', 'debug'))
self.libraries = self.distribution.libraries
# XXX same as for build_ext -- what about 'self.define' and
# 'self.undef' ?
- # set_final_options()
+ # finalize_options()
def run (self):
]
- def set_default_options (self):
+ def initialize_options (self):
self.build_dir = None
self.modules = None
self.package = None
self.package_dir = None
- def set_final_options (self):
+ def finalize_options (self):
self.set_undefined_options ('build',
('build_lib', 'build_dir'))
]
- def set_default_options (self):
+ def initialize_options (self):
self.build_base = None
self.build_lib = None
self.optimize_py = 1
- def set_final_options (self):
+ def finalize_options (self):
# XXX this method is where the default installation directories
# for modules and extension modules are determined. (Someday,
# Punt on doc directories for now -- after all, we're punting on
# documentation completely!
- # set_final_options ()
+ # finalize_options ()
def replace_sys_prefix (self, config_attr, fallback_postfix, use_exec=0):
('build-dir=','b', "build directory (where to install from)"),
]
- def set_default_options (self):
+ def initialize_options (self):
# let the 'install' command dictate our installation directory
self.install_dir = None
self.build_dir = None
- def set_final_options (self):
+ def finalize_options (self):
self.set_undefined_options ('install',
('build_platlib', 'build_dir'),
('install_site_platlib', 'install_dir'))
]
- def set_default_options (self):
+ def initialize_options (self):
# let the 'install' command dictate our installation directory
self.install_dir = None
self.build_dir = None
self.compile = 1
self.optimize = 1
- def set_final_options (self):
+ def finalize_options (self):
# Find out from the 'build_ext' command if we were asked to build
# any extensions. If so, that means even pure-Python modules in
]
- def set_default_options (self):
+ def initialize_options (self):
# let the 'install' command dictate our installation directory
self.install_dir = None
self.build_dir = None
self.compile = 1
self.optimize = 1
- def set_final_options (self):
+ def finalize_options (self):
# Find out from the 'build_ext' command if we were asked to build
# any extensions. If so, that means even pure-Python modules in
exclude_re = re.compile (r'\s*!\s*(\S+)') # for manifest lines
- def set_default_options (self):
+ def initialize_options (self):
# 'template' and 'manifest' are, respectively, the names of
# the manifest template and manifest file.
self.template = None
self.keep_tree = 0
- def set_final_options (self):
+ def finalize_options (self):
if self.manifest is None:
self.manifest = "MANIFEST"
if self.template is None: