Skip to content

Simpler build - #664

Merged
lubianat merged 5 commits into
mainfrom
simpler-build
Nov 23, 2026
Merged

lubianat merged 5 commits into
mainfrom
simpler-build

Conversation

@jo-mueller

Copy link
Copy Markdown
Contributor

Fixes #659
Depends on #662

This PR bakes the submopule update into the sphinx build script. I also correctly the build instructions mildly so that the make calls are correct for both Unix and Windows (Windows needs .\make html)

@jo-mueller jo-mueller added the enhancement New feature or request label Nov 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Automated Review URLs

@github-actions
github-actions Bot requested a review from lubianat November 10, 2026 13:31
@lubianat lubianat added the infra Concern: basic infrastructure label Nov 10, 2026
@govekk

govekk commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

👍 did a quick test and I'm happy with how this works

lubianat
lubianat previously approved these changes Nov 10, 2026

@lubianat lubianat left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! nice!

@lubianat
lubianat requested a review from clbarnes November 10, 2026 17:14
lubianat
lubianat previously approved these changes Nov 16, 2026
clbarnes
clbarnes previously approved these changes Nov 16, 2026
@clbarnes
clbarnes self-requested a review November 16, 2026 11:41
@clbarnes

Copy link
Copy Markdown
Contributor

Not sure I like the build script modifying the repo. How about adding a recipe for submodule updates into the Makefile instead - that way the build script stays pure, but the user still benefits from not having to remember the commands for updating submodules?

@jo-mueller

Copy link
Copy Markdown
Contributor Author

How about adding a recipe for submodule updates into the Makefile instead - that way the build script stays pure, but the user still benefits from not having to remember the commands for updating submodules?

That was my initial idea at first as well, but then the sphinx-autobuild which we advertise as a cheap way to build the page won't work anymore. But it's a tractable path, too 👍

@lubianat

Copy link
Copy Markdown
Contributor

Not sure I like the build script modifying the repo.

Yeah, good point. I guess it is a smell. I am okay with the Makefile + the clearer error message in sphinx-autobuild.

I defer to @jo-mueller on the decision

@jo-mueller
jo-mueller dismissed stale reviews from clbarnes and lubianat via 4c1225b November 23, 2026 08:39
@jo-mueller

jo-mueller commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor Author

Ok, I ended up updating only the install instructions. Putting the git commands in the build code is arguably smelly, but then the current install commands won't work anymore:

pip install -r requirements.txt
pip install specifications/dev

because specifications/dev won't exist until git submodule update has been called. To be fair, this was already an issue beforehand. So...long story short, the install instructions now recommend:

cd path/to/ngff/repo
pip install -r requirements.txt
git submodule update --init --depth 1
pip install specifications/dev

and #662 makes sure that the page builds even if the submodules are somehow not existant/broken/whatever. I think that's probably the most feasible path forward.

@joshmoore joshmoore left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

README changes MSTM, plus I've run into the error of having not checked out the submodules 💯 for an extra warning.

@lubianat
lubianat merged commit a6a06c6 into main Nov 23, 2026
4 checks passed
@lubianat

Copy link
Copy Markdown
Contributor

Thank you @jo-mueller , with Josh's okay I went ahead and merged it.

@jo-mueller
jo-mueller deleted the simpler-build branch November 24, 2026 10:47
@joshmoore

Copy link
Copy Markdown
Member

#662 can be closed now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request infra Concern: basic infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

specification submodules complicate local website builds

5 participants