"temporary build directory"),
('debug', 'g',
"compile extensions and libraries with debugging information"),
+ ('force', 'f',
+ "forcibly build everything (ignore file timestamps"),
]
def initialize_options (self):
self.build_lib = None
self.build_temp = None
self.debug = None
+ self.force = 0
def finalize_options (self):
+ print "build.finalize: force=%s" % self.force
+
# Need this to name platform-specific directories, but sys.platform
# is not enough -- it only names the OS and version, not the
# hardware architecture!
"directory to put temporary build by-products"),
('debug', 'g',
"compile with debugging information"),
+ ('force', 'f',
+ "forcibly build everything (ignore file timestamps"),
]
def initialize_options (self):
self.define = None
self.undef = None
self.debug = None
+ self.force = 0
# initialize_options()
self.set_undefined_options ('build',
('build_temp', 'build_clib'),
('build_temp', 'build_temp'),
- ('debug', 'debug'))
+ ('debug', 'debug'),
+ ('force', 'force'))
self.libraries = self.distribution.libraries
if self.libraries:
"extra explicit link objects to include in the link"),
('debug', 'g',
"compile/link with debugging information"),
+ ('force', 'f',
+ "forcibly build everything (ignore file timestamps"),
]
self.rpath = None
self.link_objects = None
self.debug = None
+ self.force = None
def finalize_options (self):
self.set_undefined_options ('build',
('build_lib', 'build_lib'),
('build_temp', 'build_temp'),
- ('debug', 'debug'))
+ ('debug', 'debug'),
+ ('force', 'force'))
if self.package is None:
self.package = self.distribution.ext_package
user_options = [
('build-lib=', 'd', "directory to \"build\" (copy) to"),
+ ('force', 'f', "forcibly build everything (ignore file timestamps"),
]
self.modules = None
self.package = None
self.package_dir = None
+ self.force = None
def finalize_options (self):
+ print "build_py.finalize: force=%s" % self.force
self.set_undefined_options ('build',
- ('build_lib', 'build_lib'))
+ ('build_lib', 'build_lib'),
+ ('force', 'force'))
+ print "build_py.finalize: force=%s" % self.force
# Get the distribution options that are aliases for build_py
# options -- list of packages and list of modules.