A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/nedbat/coveragepy/issues/80 below:

# Is there a duck-typing way to know we can't compile extensions? · Issue #80 · nedbat/coveragepy · GitHub

Originally reported by Zooko O'Whielacronx (Bitbucket: zooko, GitHub: zooko)

Is there a duck-typing way to know we can't compile extensions?

Yes! You try to build the extension and if it fails then you automatically fall back to using your pure-Python alternative. This way install will also succeed on a system without a C compiler, for example.

The example code that I crib from whenever I'm going to use this hack is simplejson:

http://simplejson.googlecode.com/svn/trunk/setup.py


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4