diff --git a/src/SimNDT/core/setup_quadtree.py b/src/SimNDT/core/setup_quadtree.py
new file mode 100644
index 0000000..ffe20e3
--- /dev/null
+++ b/src/SimNDT/core/setup_quadtree.py
@@ -0,0 +1,12 @@
+from distutils.core import setup
+from distutils.extension import Extension
+from Cython.Distutils import build_ext
+
+import numpy
+
+ext = Extension("quadtree", ["quadtree.pyx"],
+                include_dirs = [numpy.get_include()])
+
+setup(ext_modules=[ext],
+      cmdclass = {'build_ext': build_ext})
+