Changeset 41fc24f for python/lib
- Timestamp:
- Aug 29, 2016, 11:21:41 PM (8 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- 3f961c4
- Parents:
- 67f0092
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/lib/gen_external.py
r67f0092 r41fc24f 120 120 return cpp_output, cpp_objects 121 121 122 def generate_external(header=header, output_path=output_path, usedouble=False, overwrite=True): 123 if not os.path.isdir(output_path): os.mkdir(output_path) 124 elif not overwrite: return glob.glob(os.path.join(output_path, '*.c')) 125 sources_list = [] 126 cpp_output, cpp_objects = get_cpp_objects(header) 122 123 def analyze_cpp_output(cpp_objects, cpp_output): 127 124 lib = {} 128 125 … … 154 151 #print "no idea what to do about", fn 155 152 lib[shortname]['other'].append(fn) 156 157 """ 153 return lib 154 155 def print_cpp_output_results(lib, cpp_output): 158 156 for fn in cpp_output: 159 157 found = 0 … … 163 161 found = 1 164 162 if found == 0: 165 print "missing", fn163 print ("missing", fn) 166 164 167 165 for o in lib: … … 172 170 print ( "{:15s} {:10s} {:s}".format(o, family, lib[o][family][0] ) ) 173 171 else: 174 print ( "{:15s} {:10s} {:d}".format(o, family, len(lib[o][family]) ) ) 175 """ 176 172 print ( "{:15s} {:10s} {:s}".format(o, family, lib[o][family] ) ) 173 174 175 def generate_external(header=header, output_path=output_path, usedouble=False, overwrite=True): 176 if not os.path.isdir(output_path): os.mkdir(output_path) 177 elif not overwrite: return glob.glob(os.path.join(output_path, '*.c')) 178 179 cpp_output, cpp_objects = get_cpp_objects(header) 180 181 lib = analyze_cpp_output(cpp_objects, cpp_output) 182 # print_cpp_output_results(lib, cpp_output) 183 184 sources_list = [] 177 185 try: 178 186 from .gen_code import MappedObject
Note: See TracChangeset
for help on using the changeset viewer.