Files
macports-ports/python/py-pyrxp/files/patch-license-setup.py.diff
Renee Otten 5b61efa9f0 py-pyrxp: update to 3.0.1
- drop py39, add py314 subport
- pin to version 2.2.2 for PY27
2026-02-27 11:53:31 -05:00

45 lines
1.3 KiB
Diff

--- 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(),