mirror of
https://github.com/beard7n/bsdports.git
synced 2026-04-10 18:41:17 +02:00
create bsd12 branch
This commit is contained in:
28
python/py-ltxml/files/patch-setup.py
Normal file
28
python/py-ltxml/files/patch-setup.py
Normal file
@@ -0,0 +1,28 @@
|
||||
--- 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])
|
||||
Reference in New Issue
Block a user