Commit faf0574b authored by Robert Bradshaw's avatar Robert Bradshaw

minor changes to get pyximport working

parent 53c3e2bf
...@@ -24,12 +24,12 @@ setup( ...@@ -24,12 +24,12 @@ setup(
url = "http://www.prescod.net/pyximport", url = "http://www.prescod.net/pyximport",
license = "Python", license = "Python",
keywords = "pyrex import hook", keywords = "pyrex import hook",
scripts = ["pyxrun"], # scripts = ["pyxrun"],
data_files = [("examples/multi_file_extension", # data_files = [("examples/multi_file_extension",
["README", "ccode.c", "test.pyx", "test.pyxbld"]), # ["README", "ccode.c", "test.pyx", "test.pyxbld"]),
("examples/dependencies", # ("examples/dependencies",
["README", "test.pyx", "test.pyxdep", "header.h", # ["README", "test.pyx", "test.pyxdep", "header.h",
"header2.h", "header3.h", "header4.h"]) # "header2.h", "header3.h", "header4.h"])
], # ],
py_modules = ["pyximport", "pyxbuild"]) py_modules = ["pyximport", "pyxbuild"])
...@@ -10,7 +10,7 @@ from distutils.dist import Distribution ...@@ -10,7 +10,7 @@ from distutils.dist import Distribution
from distutils.errors import DistutilsArgError, DistutilsError, CCompilerError from distutils.errors import DistutilsArgError, DistutilsError, CCompilerError
from distutils.extension import Extension from distutils.extension import Extension
from distutils.util import grok_environment_error from distutils.util import grok_environment_error
from Pyrex.Distutils import build_ext from Cython.Distutils import build_ext
import shutil import shutil
DEBUG = 0 DEBUG = 0
......
...@@ -55,7 +55,7 @@ def _load_pyrex(name, filename): ...@@ -55,7 +55,7 @@ def _load_pyrex(name, filename):
def get_distutils_extension(modname, pyxfilename): def get_distutils_extension(modname, pyxfilename):
extra = "_" + md5.md5(open(pyxfilename).read()).hexdigest() extra = "_" + md5.md5(open(pyxfilename).read()).hexdigest()
modname = modname + extra # modname = modname + extra
extension_mod = handle_special_build(modname, pyxfilename) extension_mod = handle_special_build(modname, pyxfilename)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment