def __init__(self, version, options): super(CPythonInstaller, self).__init__(version, options) if Version(self.pkg.version) >= '3.1': self.configure_options.append('--with-computed-gotos') if sys.platform == "darwin": # set configure options target = get_macosx_deployment_target() if target: self.configure_options.append('MACOSX_DEPLOYMENT_TARGET=%s' % target) # set build options if options.framework and options.shared: logger.error("Can't specify both framework and shared.") raise Exception if options.framework: self.configure_options.append('--enable-framework=%s' % os.path.join(self.install_dir, 'Frameworks')) if options.shared: self.configure_options.append('--enable-shared') if options.universal: self.configure_options.append('--enable-universalsdk=/') self.configure_options.append('--with-universal-archs=intel') else: if options.shared: self.configure_options.append('--enable-shared')
def __init__(self, version, options): super(CPythonInstaller, self).__init__(version, options) if Version(self.pkg.version) >= '3.1': self.configure_options.append('--with-computed-gotos') if sys.platform == "darwin": # set configure options target = get_macosx_deployment_target() if target: self.configure_options.append('MACOSX_DEPLOYMENT_TARGET=%s' % target) # set build options if options.framework and options.static: logger.error("Can't specify both framework and static.") raise Exception if options.framework: self.configure_options.append( '--enable-framework=%s' % os.path.join(self.install_dir, 'Frameworks')) elif not options.static: self.configure_options.append('--enable-shared') if options.universal: self.configure_options.append('--enable-universalsdk=/') self.configure_options.append('--with-universal-archs=intel')
def __init__(self, arg, options): super(PythonInstallerMacOSX, self).__init__(arg, options) # set configure options target = get_macosx_deployment_target() if target: self.configure_options.append('MACOSX_DEPLOYMENT_TARGET=%s' % target) # set build options if options.framework and options.static: logger.error("Can't specify both framework and static.") raise Exception if options.framework: self.configure_options.append('--enable-framework=%s' % os.path.join(self.install_dir, 'Frameworks')) elif not options.static: self.configure_options.append('--enable-shared') if options.universal: self.configure_options.append('--enable-universalsdk=/') self.configure_options.append('--with-universal-archs=intel')
def __init__(self, version, options): super(CPythonInstaller, self).__init__(version, options) version = Version(self.pkg.version) if version >= '3.1': self.configure_options.append('--with-computed-gotos') # fix for #109 if version < '2.7': self.configure_options.append('SVNVERSION="Unversioned directory"') # fix for #127 if sys.platform.startswith('linux'): if version >= '2.5' and version < '3.0': self.configure_options.append('--enable-unicode=ucs4') elif version >= '3.0' and version < '3.3': self.configure_options.append('--with-wide-unicode') if sys.platform == "darwin": # set configure options target = get_macosx_deployment_target() if target: self.configure_options.append('MACOSX_DEPLOYMENT_TARGET=%s' % target) # set build options if options.framework and options.shared: logger.error("Can't specify both framework and shared.") raise Exception if options.framework: self.configure_options.append( '--enable-framework=%s' % os.path.join(self.install_dir, 'Frameworks')) if options.shared: self.configure_options.append('--enable-shared') if options.universal: self.configure_options.append('--enable-universalsdk=/') self.configure_options.append('--with-universal-archs=intel') else: if options.shared: self.configure_options.append('--enable-shared')
def __init__(self, version, options): super(CPythonInstaller, self).__init__(version, options) if Version(self.pkg.version) >= "3.1": self.configure_options.append("--with-computed-gotos") if sys.platform == "darwin": # set configure options target = get_macosx_deployment_target() if target: self.configure_options.append("MACOSX_DEPLOYMENT_TARGET=%s" % target) # set build options if options.framework and options.static: logger.error("Can't specify both framework and static.") raise Exception if options.framework: self.configure_options.append("--enable-framework=%s" % os.path.join(self.install_dir, "Frameworks")) elif not options.static: self.configure_options.append("--enable-shared") if options.universal: self.configure_options.append("--enable-universalsdk=/") self.configure_options.append("--with-universal-archs=intel")