Skip to content

Generating python files from setup.py? #4803

Answered by abravalheri
paugier asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @paugier this customisation is trick to implement, I will try my best to give some pointers, but I don't have all the answers:

I'm a bit lost with the association between setuptools commands/subcommands (build_py, install, etc.) and the PEP 517 functions (defined for setuptools in https://github.com/pypa/setuptools/blob/main/setuptools/build_meta.py).

In general it looks like the following:

get_requires_for_* => Internally setuptools will run the egg_info/dist_info command objects
prepare_metadata_for_* => Internally setuptools will run the egg_info/dist_info command objects
build_sdist => Internally setuptools will run the sdist command object
build_wheel => Internally setuptools wi…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@paugier
Comment options

@abravalheri
Comment options

@paugier
Comment options

@abravalheri
Comment options

@webknjaz
Comment options

Answer selected by paugier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants