Skip to content

setup.py: add headers as dependencies - #596

Closed
matthiasdiener wants to merge 1 commit into
inducer:mainfrom
matthiasdiener:setup-extends
Closed

setup.py: add headers as dependencies#596
matthiasdiener wants to merge 1 commit into
inducer:mainfrom
matthiasdiener:setup-extends

Conversation

@matthiasdiener

@matthiasdiener matthiasdiener commented Aug 9, 2022

Copy link
Copy Markdown
Contributor

Without this, modifications to header files do not trigger a
rebuild.

See also https://docs.python.org/3/distutils/setupscript.html#other-options

Without this, modifications to header files do not trigger a
rebuild.
@inducer

inducer commented Aug 9, 2022

Copy link
Copy Markdown
Owner

Sorry, no. distutils is not smart enough to gather dependencies in the way a reasonable build tool might. In addition, this is a half-measure: There are many other headers that really ought to be watched for changes.

#546 uses cmake to build, which solves this without having to clutter up setup.py.

@matthiasdiener
matthiasdiener deleted the setup-extends branch August 9, 2022 20:00
@inducer

inducer commented Aug 9, 2022

Copy link
Copy Markdown
Owner

To further explain: The only reliable way to build of which I'm aware is to start from scratch every time, i.e.

rm -Rf build; python setup.py develop

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