浏览代码

disable extensions on pypy

Ronny Pfannschmidt 13 年之前
父节点
当前提交
cc505e5f6a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      setup.py

+ 1 - 1
setup.py

@@ -27,7 +27,7 @@ class DulwichDistribution(Distribution):
             return True
 
     def has_ext_modules(self):
-        return not self.pure
+        return not self.pure and not '__pypy__' in sys.modules
 
     global_options = Distribution.global_options + [
         ('pure', None,