Skip to content

update build system#1162

Open
nbdy wants to merge 2 commits intoVUnit:masterfrom
nbdy:feature/renovate-build-system
Open

update build system#1162
nbdy wants to merge 2 commits intoVUnit:masterfrom
nbdy:feature/renovate-build-system

Conversation

@nbdy
Copy link

@nbdy nbdy commented Feb 10, 2026

Fixes

...
      ModuleNotFoundError: No module named 'pkg_resources'
      hint: This error likely indicates that `vunit-hdl@4.7.0` depends on
      `pkg_resources`, but doesn't declare it as a build dependency. If
      `vunit-hdl` is a first-party package, consider adding `pkg_resources`
      to its `build-system.requires`. Otherwise, either add it to your
      `pyproject.toml` under:
      [tool.uv.extra-build-dependencies]
      vunit-hdl = ["pkg_resources"]
      or `uv pip install pkg_resources` into the environment and re-run with
      `--no-build-isolation`.
...

The previous setup.py relied on a legacy setuptools environment where pkg_resources was assumed to be available. In modern, slim CI environments using uv, build isolation often lacks this deprecated module, leading to the ModuleNotFoundError. Transitioning to pyproject.toml with hatchling eliminates this legacy dependency and explicitly defines the build requirements, ensuring compatibility with modern Python packaging standards.

@Trooper-X
Copy link
Contributor

Relates to: #1158

(cherry picked from commit 1044a5fd6196d2876ca361eb24d731efe087cf73)
@nbdy
Copy link
Author

nbdy commented Feb 12, 2026

With the original change the python files were not included in the build by hatchling, which i just noticed.
This is fixed with the latest commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants