Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup.py: add headers as dependencies #596

Closed
wants to merge 1 commit into from

Conversation

matthiasdiener
Copy link
Contributor

@matthiasdiener matthiasdiener commented Aug 9, 2022

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
Copy link
Owner

inducer commented Aug 9, 2022

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
Copy link
Owner

inducer commented Aug 9, 2022

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