|
@@ -27,11 +27,11 @@ 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,
|
|
|
- "use pure (slower) Python code instead of C extensions")]
|
|
|
+ "use pure Python code instead of C extensions (slower on CPython)")]
|
|
|
|
|
|
pure = False
|
|
|
|