Skip to content

BUG: Fix full rebuilds#226

Merged
larsoner merged 1 commit intonumpy:masterfrom
larsoner:fix-rebuild
Jun 21, 2019
Merged

BUG: Fix full rebuilds#226
larsoner merged 1 commit intonumpy:masterfrom
larsoner:fix-rebuild

Conversation

@larsoner
Copy link
Copy Markdown
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
Copy Markdown

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

@larsoner
Copy link
Copy Markdown
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