MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / _generate_cython_from_files

Function _generate_cython_from_files

build_tools/generate_code.py:86–105  ·  view source on GitHub ↗
(target, modules)

Source from the content-addressed store, hash-verified

84
85
86def _generate_cython_from_files(target, modules):
87 contents = [
88 """from __future__ import print_function
89
90# Important: Autogenerated file.
91
92# DO NOT edit manually!
93# DO NOT edit manually!
94"""
95 ]
96
97 found = []
98 for mod in modules:
99 found.append(mod.__file__)
100 contents.append(get_cython_contents(mod.__file__))
101
102 print("Generating cython from: %s" % (found,))
103
104 with open(target, "w") as stream:
105 stream.write("".join(contents))
106
107
108def generate_dont_trace_files():

Callers 2

_generate_cython_moduleFunction · 0.85

Calls 4

get_cython_contentsFunction · 0.85
appendMethod · 0.45
writeMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected