3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-05-28 04:46:29 +00:00

Update top-level Python project for CMake compatibility.

This commit reimplements the (no longer recommended) setuptools based
build system using a standards-based in-tree PEP517 build backend.
The implementation is partially based on
  https://codeberg.org/ziglang/zig-pypi/src/branch/main/make_wheels.py
which is licensed under BSD-0-clause.
This commit is contained in:
Catherine 2026-05-27 07:58:18 +00:00
parent 0b55fad93a
commit 63fae93998
6 changed files with 168 additions and 141 deletions

View file

@ -482,9 +482,11 @@ void bind_idict(module &m, const char *name_cstr) {
return make_iterator(s.begin(), s.end());
})
.def("values", [](args _){
(void)_;
throw type_error("idicts do not support iteration on the integers");
})
.def("items", [](args _){
(void)_;
throw type_error("idicts do not support pairwise iteration");
})
.def("update", [](C &s, iterable other) {
@ -521,6 +523,7 @@ void bind_idict(module &m, const char *name_cstr) {
for (const char *mutator: {"__setitem__", "__delitem__", "pop", "popitem", "setdefault"}) {
cls.def(mutator, [](args _) {
(void)_;
throw type_error("idicts do not support arbitrary element mutation");
});
}