diff -up PyAmanith-0.3.35/setup.py.BAD PyAmanith-0.3.35/setup.py --- PyAmanith-0.3.35/setup.py.BAD 2008-09-24 14:04:33.000000000 -0400 +++ PyAmanith-0.3.35/setup.py 2008-09-24 14:05:39.000000000 -0400 @@ -16,7 +16,7 @@ libs = ["amanith"] inc = [join("changes", "include"), join(amanith_base, "include"), "include"] lib = [join(amanith_base, "lib")] cc_args = [] -swig_args = ["-Ibuild/amanith"] +swig_args = ["-Ichanges/include", "-Iinclude", "-I/usr/include"] if os.name == "nt": if debug: @@ -38,20 +38,8 @@ class build_ext(_build_ext): relPath = join(root, file).replace(source + os.sep, "") shutil.copy(join(source, relPath), join(target, relPath)) - def run(self): - # Ultimately this should use patch(1) or something, but for now - # we just copy the stuff over. - if not os.path.isdir(join("build", "amanith")): - os.makedirs(join("build", "amanith")) - shutil.copytree(join(amanith_base, "include"), join("build", "amanith", "include")) - self.copy("changes", join("build", "amanith")) - _build_ext.run(self) - ext_amanith = Extension('_amanith', ['amanith.i'], - include_dirs = inc, - library_dirs = lib, - libraries = libs, - extra_compile_args = cc_args) + swig_opts = swig_args, extra_compile_args = swig_args, libraries = libs) setup(name = 'PyAmanith', version = '0.3.35',