Commits

pfw committed c9e9c56

Check for pypy when setting ext_modules

  • Participants
  • Parent commits 92be05e

Comments (0)

Files changed (1)

 quoted = Extension(name="qpy.quoted", sources=["qpy/quoted.c"])
 passfd = Extension(name="qp.hub.passfd", sources=['qp/hub/passfd.c'])
 
+ext_modules = []
+if not hasattr(sys, 'pypy_version_info'):
+    ext_modules = [persistent, quoted, passfd]
+
 setup(
     name = "DurusWorks",
     version = DurusWorks_Version,
     author = "CNRI",
     author_email = "webmaster@mems-exchange.org",
     url = "http://www.mems-exchange.org/software/DurusWorks/",
-    ext_modules = [persistent, quoted, passfd],
+    ext_modules = ext_modules,
     cmdclass=dict(
         build_py=DurusWorks_build_py,
         build_ext=DurusWorks_build_ext,