Skip to content

Commit

Permalink
Move all autowrap stuff into the same directory
Browse files Browse the repository at this point in the history
  • Loading branch information
virtuald committed Sep 10, 2023
1 parent f060868 commit d0ac178
Show file tree
Hide file tree
Showing 15 changed files with 6 additions and 6 deletions.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions robotpy_build/hooks.py → robotpy_build/autowrap/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
else:
Protocol = object # pragma: no cover

from .config.autowrap_yml import (
from ..config.autowrap_yml import (
AutowrapConfigYaml,
BufferData,
BufferType,
Expand All @@ -21,7 +21,7 @@
PropAccess,
ReturnValuePolicy,
)
from .generator_data import GeneratorData, MissingReporter, OverloadTracker
from ..generator_data import GeneratorData, MissingReporter, OverloadTracker
from .mangle import trampoline_signature

from .j2_context import (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from dataclasses import dataclass, field
import typing

from .config.autowrap_yml import ReturnValuePolicy
from ..config.autowrap_yml import ReturnValuePolicy


Documentation = typing.Optional[typing.List[str]]
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion robotpy_build/generator_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
PropData,
FunctionData,
)
from .j2_context import OverloadTracker
from .autowrap.j2_context import OverloadTracker

import dataclasses
from typing import Dict, Optional, Tuple
Expand Down
4 changes: 2 additions & 2 deletions robotpy_build/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
from .download import download_and_extract_zip
from .config.pyproject_toml import PatchInfo, WrapperConfig, Download
from .generator_data import MissingReporter
from .hooks import Hooks
from .autowrap.hooks import Hooks

from .config.autowrap_yml import AutowrapConfigYaml
from .config.dev_yml import get_dev_config
Expand Down Expand Up @@ -612,7 +612,7 @@ def on_build_gen(
thisdir = abspath(dirname(__file__))

hppoutdir = join(self.rpy_incdir, "rpygen")
tmpl_dir = join(thisdir, "templates")
tmpl_dir = join(thisdir, "autowrap")
header_cpp_tmpl = join(tmpl_dir, "header.cpp.j2")
cls_tmpl_inst_cpp = join(tmpl_dir, "cls_tmpl_inst.cpp.j2")
cls_tmpl_inst_hpp = join(tmpl_dir, "cls_tmpl_inst.hpp.j2")
Expand Down

0 comments on commit d0ac178

Please sign in to comment.