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

Method pyrex_sources

numpy/distutils/command/build_src.py:443–456  ·  view source on GitHub ↗

Pyrex not supported; this remains for Cython support (see below)

(self, sources, extension)

Source from the content-addressed store, hash-verified

441 return new_sources
442
443 def pyrex_sources(self, sources, extension):
444 """Pyrex not supported; this remains for Cython support (see below)"""
445 new_sources = []
446 ext_name = extension.name.split('.')[-1]
447 for source in sources:
448 (base, ext) = os.path.splitext(source)
449 if ext == '.pyx':
450 target_file = self.generate_a_pyrex_source(base, ext_name,
451 source,
452 extension)
453 new_sources.append(target_file)
454 else:
455 new_sources.append(source)
456 return new_sources
457
458 def generate_a_pyrex_source(self, base, ext_name, source, extension):
459 """Pyrex is not supported, but some projects monkeypatch this method.

Callers 1

Calls 2

splitMethod · 0.45

Tested by

no test coverage detected