MCPcopy Create free account
hub / github.com/numpy/numpy / get_distribution

Function get_distribution

numpy/distutils/core.py:93–106  ·  view source on GitHub ↗
(always=False)

Source from the content-addressed store, hash-verified

91 return ok
92
93def 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
108def setup(**attr):
109

Callers 3

get_num_build_jobsFunction · 0.90
get_distributionMethod · 0.90
_find_existing_fcompilerFunction · 0.90

Calls 1

NumpyDistributionClass · 0.90

Tested by

no test coverage detected