freebsd-ports/textproc/py-ltxml/files/patch-setup.py
Dmitry Marakasov bd9a350e91 - License
- Switch to options helpers
- Cosmetic fixes
- Update WWW
- Regenerate patches with `make makepatch`
2016-07-23 09:00:54 +00:00

28 lines
984 B
Python

--- setup.py.orig 2008-01-11 14:26:31 UTC
+++ setup.py
@@ -6,9 +6,7 @@ import sys
from distutils.core import setup, Extension
from distutils import sysconfig
-datafiles= ['example/small.xml',
- 'example/gscore.dtd',
- 'example/simple.py'] # only works for bdist and friends
+datafiles=[]
if sys.platform.find("win32",0,5)==0:
incldirs=['C:\\Program Files\\msys\\1.0\\include\\ltxml12','C:\\Program Files\\msys\\1.0\\include']
@@ -32,8 +30,6 @@ else:
libs=['ltapi12','ltstd12', 'z']
macros=[('FOR_LT', '1')] # ,('ALLOC_DEBUG', '1')
- data_files=[( sysconfig.get_python_lib() + "/PyLTXML/example",
- datafiles)]
if sys.platform.find("sunos",0,5)==0:
extra_link_args=['-mimpure-text']
extra_compile_args=['-mimpure-text']
@@ -65,5 +61,4 @@ setup(name='PyLTXML',
See 00README for details""",
platforms=[platform],
packages=['PyLTXML'],
- data_files=data_files,
ext_modules=[pyltxml])