merged in Vitja's tab removals
[cython.git] / pyximport / Setup.py
1 from distutils.core import setup
2 import sys, os
3 from StringIO import StringIO
4
5 if "sdist" in sys.argv:
6     try:
7         os.remove("MANIFEST")
8     except (IOError, OSError):
9         pass
10
11     import html2text
12     out = StringIO()
13     html2text.convert_files(open("index.html"), out)
14     out.write("\n\n")
15     open("README", "w").write(out.getvalue())
16
17 setup(
18     name = "pyximport",
19     fullname = "Pyrex Import Hooks",
20     version = "1.0",
21     description = "Hooks to build and run Pyrex files as if they were simple Python files", 
22     author = "Paul Prescod",
23     author_email = "paul@prescod.net",
24     url = "http://www.prescod.net/pyximport",
25     license = "Python",
26     keywords = "pyrex import hook",
27 #    scripts = ["pyxrun"],
28 #    data_files = [("examples/multi_file_extension", 
29 #         ["README", "ccode.c", "test.pyx", "test.pyxbld"]),
30 #       ("examples/dependencies",
31 #         ["README", "test.pyx", "test.pyxdep", "header.h",
32 #           "header2.h", "header3.h", "header4.h"])
33 #        ],
34     py_modules = ["pyximport", "pyxbuild"])
35