self.library_dirs = []
if self.rpath is None:
self.rpath = []
+ elif type(self.rpath) is StringType:
+ self.rpath = string.split(self.rpath, os.pathsep)
# for extensions under windows use different directories
# for Release and Debug builds.
self.build_temp = os.path.join(self.build_temp, "Debug")
else:
self.build_temp = os.path.join(self.build_temp, "Release")
+
+ # The argument parsing will result in self.define being a string, but
+ # it has to be a list of 2-tuples. All the preprocessor symbols
+ # specified by the 'define' option will be set to '1'. Multiple
+ # symbols can be separated with commas.
+
+ if self.define:
+ defines = string.split(self.define, ',')
+ self.define = map(lambda symbol: (symbol, '1'), defines)
+
+ # The option for macros to undefine is also a string from the
+ # option parsing, but has to be a list. Multiple symbols can also
+ # be separated with commas here.
+ if self.undef:
+ self.undef = string.split(self.undef, ',')
+
# finalize_options ()
return self.package + '.' + ext_name
def get_ext_filename (self, ext_name):
- """Convert the name of an extension (eg. "foo.bar") into the name
+ r"""Convert the name of an extension (eg. "foo.bar") into the name
of the file from which it will be loaded (eg. "foo/bar.so", or
"foo\bar.pyd").
"""
- pyexpat.c - removed memory leaks
+- #233253 - distutils/command/build_ext.py - the --define and --undef options
+ didn't work, whether specified on the command-line or in setup.cfg.
+
+- distutils/command/build_ext.py - make docstrings raw
+
+- #128930 - distutils/command/build_ext.py - split rpath argument
+
What's New in Python 2.0?
=========================