Skip to content

Commit

Permalink
Use gen_all.py in workflows and remove run() function from vector_cod…
Browse files Browse the repository at this point in the history
…egen.py
  • Loading branch information
shBLOCK committed Oct 3, 2023
1 parent a520970 commit 3660484
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
- name: Install Dependencies
run: pip install -r requirements.txt

- name: Codegen - Vector
run: python vector_codegen.py
- name: Codegen
run: python gen_all.py
working-directory: codegen

- name: Copy outputs to src
Expand Down
14 changes: 0 additions & 14 deletions codegen/vector_codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,17 +212,3 @@ def gen_vec_class(dims: int, vtype: Type) -> str:

def get_globals():
return globals()


def run():
import shutil
codegen.step_generate("vector.pyx", _globals=globals())

shutil.copy("output/vector.pyx", "../src/gdmath/vector.pyx")

# codegen.step_cythonize("vector")
# codegen.step_move_to_dest("../sim/math/", "vector", ".pyd")


if __name__ == '__main__':
run()

0 comments on commit 3660484

Please sign in to comment.