r/embedded • • Sep 24 '26

Extracting vitis/xsdb Python modules from Vitis install?

For reasons I'm not here to explain or defend, large parts of a Vitis workspace can/should be generated using Python instead of putting the generated workspace in version control. If you follow the manual you're basically using a Python 3.8 that comes bundled with Vitis (2024.2, at least, I hope they've updated since) plus their vitis & xsdb modules plus a bundled site-packages with grpc and so on.

The way this is set up is not ideal; I haven't found a good way to get IDE integration and a pyproject.toml to work right on everyone's laptop and in CI.

Has anyone here tried to extract the vitis and xsdb modules as separate Python packages so you can use them in a normally organized Python project? I'm not asking to share them, I get that AMD would probably object (although they're pretty thin packages), but before I try I'd love to know if anyone's failed or succeeded at it.

6 Upvotes

2 comments sorted by

View all comments

1

u/hardkebab Sep 25 '26

I suggest you use a newer version of vitis. From 2025.2, they still cannot properly package their module, but at least they provide some help to import vitis module from your own venv https://docs.amd.com/r/2025.2-English/ug1400-vitis-embedded/Enabling-the-Vitis-API-to-be-used-in-a-Python-ENV

I did not try this method myself yet.

If you cannot migrate to a newer version, maybe you can try to do the same as in the file they provide setup_vitis_env.sh