Browse Source

disable extensions on pypy

Ronny Pfannschmidt 13 years ago
parent
commit
bfc5fd4bab
1 changed files with 1 additions and 1 deletions
  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,