--- setup.py.orig 2026-02-27 11:51:52 +++ setup.py 2026-02-27 11:52:22 @@ -15,9 +15,9 @@ from distutils.core import setup, Extension def raiseConfigError(msg): - import exceptions - class ConfigError(exceptions.Exception): - pass + import exceptions + class ConfigError(exceptions.Exception): + pass raise ConfigError(msg) LIBS = [] @@ -39,8 +39,8 @@ else: LIBS=[] - rxpFiles = ('xmlparser.c', 'url.c', 'charset.c', 'string16.c', 'ctype16.c', - 'dtd.c', 'input.c', 'stdio16.c', 'system.c', 'hash.c', + rxpFiles = ('xmlparser.c', 'url.c', 'charset.c', 'string16.c', 'ctype16.c', + 'dtd.c', 'input.c', 'stdio16.c', 'system.c', 'hash.c', 'version.c', 'namespaces.c', 'http.c', 'nf16check.c', 'nf16data.c') pyRXPDir = os.path.join(pkgDir,'src') RXPLIBSOURCES=[] @@ -60,8 +60,6 @@ ), ] - with open('LICENSE.txt','r') as _: - license = _.read() setup( name = "pyRXP", version = VERSION, description = "Python RXP interface - fast validating XML parser", @@ -69,7 +67,7 @@ author_email = "robin@reportlab.com", url = "http://www.reportlab.com", packages = [], - license=open('LICENSE.txt','r').read(), + license="BSD", ext_modules = EXT_MODULES, package_data = {'': ['pyRXP-license.txt']}, #license = open(os.path.join('rxp','COPYING')).read(),