Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/racfu/racfu.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def __init__(
request: dict,
raw_request: bytes | None,
raw_result: bytes | None,
result: dict[str, Any] | None
result: dict[str, Any] | None,
):
self.request = request
self.raw_request = raw_request
Expand Down
12 changes: 6 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def assemble(asm_file: str, asm_directory: Path) -> None:
def generate_json_schema_header() -> None:
"""Generate RACFu JSON schema header."""
schema_absolute_path = Path.cwd() / "schema.json"
with open(schema_absolute_path, "r") as f:
with open(schema_absolute_path) as f:
schema = json.dumps(json.load(f), separators=(",", ":"))
schema_header_absolute_path = Path.cwd() / "racfu" / "racfu_schema.hpp"
with open(schema_header_absolute_path, "w") as f:
Expand All @@ -50,12 +50,12 @@ def generate_json_schema_header() -> None:
f'#define RACFU_SCHEMA R"({schema})"_json',
"",
"#endif",
]
)
],
),
)


class build_with_asm_ext(build_ext):
class BuildWithASMExt(build_ext):
"""Build Python extension that includes assembler code."""
def run(self):
os.environ["CC"] = "ibm-clang64"
Expand Down Expand Up @@ -89,9 +89,9 @@ def main():
),
extra_link_args=["-m64", "-Wl,-b,edit=no"],
extra_objects=[f"{assembled_object_path}"],
)
),
],
"cmdclass": {"build_ext": build_with_asm_ext},
"cmdclass": {"build_ext": BuildWithASMExt},
}
setup(**setup_args)

Expand Down
Loading