Skip to content

BUG: Fix full rebuilds #226

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

Merged
merged 1 commit into from
Jun 21, 2019
Merged

BUG: Fix full rebuilds #226

merged 1 commit into from
Jun 21, 2019

Conversation

larsoner
Copy link
Collaborator

I realized that my Sphinx was always doing a full rebuild. It's because with xref we modify the config to add some values after the builder is initted. But then this env gets pickled and saved to disk, so on the next sphinx build run it compares the user's config (which does not have these values) to the pickled config (which has the added values) which triggers a full rebuild every time.

This fixes it by instead just checking our set after the user's set when doing the xref step. It's a tiny bit less efficient but should not be too much of a slowdown.

@NicolasHug
Copy link

Can confirm this solves the re-build of scikit-learn!

@larsoner
Copy link
Collaborator Author

I'll merge tomorrow unless there are objections

@larsoner larsoner merged commit b756833 into numpy:master Jun 21, 2019
@larsoner larsoner deleted the fix-rebuild branch June 21, 2019 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants