(always=False)
| 91 | return ok |
| 92 | |
| 93 | def get_distribution(always=False): |
| 94 | dist = distutils.core._setup_distribution |
| 95 | # XXX Hack to get numpy installable with easy_install. |
| 96 | # The problem is easy_install runs it's own setup(), which |
| 97 | # sets up distutils.core._setup_distribution. However, |
| 98 | # when our setup() runs, that gets overwritten and lost. |
| 99 | # We can't use isinstance, as the DistributionWithoutHelpCommands |
| 100 | # class is local to a function in setuptools.command.easy_install |
| 101 | if dist is not None and \ |
| 102 | 'DistributionWithoutHelpCommands' in repr(dist): |
| 103 | dist = None |
| 104 | if always and dist is None: |
| 105 | dist = NumpyDistribution() |
| 106 | return dist |
| 107 | |
| 108 | def setup(**attr): |
| 109 |
no test coverage detected