Skip to content

Commit

Permalink
Remove Python API bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
callumfare committed Nov 15, 2023
1 parent a1fbbde commit d97f4df
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 4,669 deletions.
4,304 changes: 0 additions & 4,304 deletions include/ur.py

This file was deleted.

28 changes: 0 additions & 28 deletions scripts/generate_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,26 +70,6 @@ def _mako_ddi_h(path, namespace, tags, version, revision, specs, meta):
specs=specs,
meta=meta)

"""
generates python files from the specification documents
"""
def _mako_api_py(path, namespace, tags, version, revision, specs, meta):
template = "api.py.mako"
fin = os.path.join("templates", template)

filename = "%s.py"%(namespace)
fout = os.path.join(path, filename)

print("Generating %s..."%fout)
return util.makoWrite(
fin, fout,
ver=version,
rev=revision,
namespace=namespace,
tags=tags,
specs=specs,
meta=meta)

"""
generates c/c++ files from the specification documents
"""
Expand All @@ -101,13 +81,6 @@ def _generate_api_cpp(incpath, srcpath, namespace, tags, version, revision, spec

return loc

"""
generates python files from the specification documents
"""
def _generate_api_py(incpath, namespace, tags, version, revision, specs, meta):
loc = _mako_api_py(incpath, namespace, tags, version, revision, specs, meta)
return loc

"""
Entry-point:
generates api code
Expand All @@ -118,7 +91,6 @@ def generate_api(incpath, srcpath, namespace, tags, version, revision, specs, me

loc = 0
loc += _generate_api_cpp(incpath, srcpath, namespace, tags, version, revision, specs, meta)
loc += _generate_api_py(incpath, namespace, tags, version, revision, specs, meta)
print("Generated %s lines of code.\n"%loc)

templates_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "templates")
Expand Down
196 changes: 0 additions & 196 deletions scripts/templates/api.py.mako

This file was deleted.

Loading

0 comments on commit d97f4df

Please sign in to comment.