def finalize_options(self):
    if (self.plat_name is None):
        self.plat_name = get_platform()
    elif (os.name != 'nt'):
        raise DistutilsOptionError("--plat-name only supported on Windows (try using './configure --help' on your platform)")
    plat_specifier = ('.%s-%s' % (self.plat_name, sys.version[0:3]))
    if hasattr(sys, 'gettotalrefcount'):
        plat_specifier += '-pydebug'
    if (self.build_purelib is None):
        self.build_purelib = os.path.join(self.build_base, 'lib')
    if (self.build_platlib is None):
        self.build_platlib = os.path.join(self.build_base, ('lib' + plat_specifier))
    if (self.build_lib is None):
        if self.distribution.ext_modules:
            self.build_lib = self.build_platlib
        else:
            self.build_lib = self.build_purelib
    if (self.build_temp is None):
        self.build_temp = os.path.join(self.build_base, ('temp' + plat_specifier))
    if (self.build_scripts is None):
        self.build_scripts = os.path.join(self.build_base, ('scripts-' + sys.version[0:3]))
    if (self.executable is None):
        self.executable = os.path.normpath(sys.executable)
def finalize_options(self):
    if (self.plat_name is None):
        self.plat_name = get_platform()
    elif (os.name != 'nt'):
        raise DistutilsOptionError("--plat-name only supported on Windows (try using './configure --help' on your platform)")
    plat_specifier = ('.%s-%s' % (self.plat_name, sys.version[0:3]))
    if hasattr(sys, 'gettotalrefcount'):
        plat_specifier += '-pydebug'
    if (self.build_purelib is None):
        self.build_purelib = os.path.join(self.build_base, 'lib')
    if (self.build_platlib is None):
        self.build_platlib = os.path.join(self.build_base, ('lib' + plat_specifier))
    if (self.build_lib is None):
        if self.distribution.ext_modules:
            self.build_lib = self.build_platlib
        else:
            self.build_lib = self.build_purelib
    if (self.build_temp is None):
        self.build_temp = os.path.join(self.build_base, ('temp' + plat_specifier))
    if (self.build_scripts is None):
        self.build_scripts = os.path.join(self.build_base, ('scripts-' + sys.version[0:3]))
    if (self.executable is None):
        self.executable = os.path.normpath(sys.executable)