summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorfaassen <none@none>2004-12-10 22:12:56 +0100
committerfaassen <none@none>2004-12-10 22:12:56 +0100
commitdbac1f7c6bea3befd6796cee06fee0a620a2ea33 (patch)
treeee210b8fd3a04ce4253f3be236b9b50527297163 /setup.py
parentc61df7cb8eab5ca7f6467341d8ae2ed4fd585710 (diff)
downloadpython-lxml-dbac1f7c6bea3befd6796cee06fee0a620a2ea33.tar.gz
[svn r90] Add a framework for registering nodes with a registry, for management
of deallocation. No real tests yet, but at least it all compiles. --HG-- branch : trunk
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py19
1 files changed, 18 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 5aa039d4..6d844a54 100644
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@ from distutils.command.install_lib import install_lib as installcmd
from distutils.core import setup
from distutils.dist import Distribution
from distutils.extension import Extension
-from Pyrex.Distutils import build_ext
+from lxmldistutils import build_ext
# We have to snoop for file types that distutils doesn't copy correctly when
# doing a non-build-in-place.
@@ -90,6 +90,11 @@ class MyExtBuilder(build_ext):
os.path.walk(os.curdir, remove_stale_bytecode, None)
build_ext.run(self)
+ def get_pxd_include_paths(self):
+ """lxml specific pxd paths.
+ """
+ return ['src/lxml']
+
class MyLibInstaller(installcmd):
def run(self):
installcmd.run(self)
@@ -118,6 +123,18 @@ ext_modules = [
libraries=['xml2'],
extra_compile_args = ['-w']
),
+ Extension('lxml.nodereg',
+ sources=['src/lxml/nodereg.pyx'],
+ include_dirs=['/usr/include/libxml2'],
+ libraries=['xml2'],
+ extra_compile_args = ['-w']
+ ),
+ Extension('lxml.noderegtest',
+ sources=['src/lxml/noderegtest.pyx'],
+ include_dirs=['/usr/include/libxml2'],
+ libraries=['xml2'],
+ extra_compile_args = ['-w']
+ ),
]
setup(name="lxml",