Text of discuss.python.org › t › command-to-extract-dependencies-from-a-python-project › 86428 as Styx crawled it on Nov 20, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

Command to extract dependencies from a Python project? - Python Help - Discussions on Python.org

Command to extract dependencies from a Python project? Python Help packaging-help yurivict (yuri@FreeBSD) March 29, 2025, 5:45pm 1 Given a PEP517 project, are there a commands that can extract build-time and run-time dependencies in a uniform way? Same question for setup.py based projects. sinoroc (sinoroc) March 29, 2025, 6:11pm 2 For runtime dependencies: For built-time dependencies, I guess maybe this one: MegaIng (Cornelius Krupp) March 29, 2025, 6:13pm 3 AFAIK, for runtime dependencies the only way is to build the project and then read out the wheel file.

Dependencies can be platform dependent and/or dynamically generated. For build dependencies you just need to read one key - this is a short python script you could write. You could also use tomlq/tq: GitHub - cryptaliagy/tomlq: A tool for getting data from TOML files on the command line