Open cary-ilm opened 11 months ago
I am following up on these finally ... I tried to build the website on WSL Ubuntu 22 LTS first before dare to try it on Win 10 native, because it need to at the very least run on WSL; and considering most Windows people these days can grab a WSL with ease, so if we can build it on WSL maybe we don't even need to bother with windows native.
This quickly bring my attention to this line:
print(f'PATH={os.environ["PATH"]}')
result = run (['which', 'exrheader'],
stdout=PIPE, stderr=PIPE, universal_newlines=True)
print(f'exrheader={result.stdout}')
This won't work -- certainly not on windows native because we have no "which" and probably not even PATH, but also not even on vanilla WSL because one would not have installed exrheader in PATH according to the website instructions. I'm trying to build+install openexr on WSL first (which will generate the exrheader executable commandline tool, then continue with the experiment...
After manually build openexr first and installing exrheader
in PATH
, i was able to build the website successfully in WSL. That gives me at least a workable way to edit the contents.
The specific error Cary posted above is from here:
This means the command cmake
is not on PATH
. However on Windows development it is generally anti-pattern for a build to add a bunch of customized app onto PATH such as cmake
and exrheader
. Rather, it should be a self-contained variable in the CMAKE file.
Given that there are so many python subprocess.run()
calls in that scripts\test_images.py
, I don't think it would worth fixing all of them to be turely cross-platform; we'll need to make sure all those subprocess.run()
calls can properly find their apps, for many of which simply doesn't exist on windows. I think there are two paths we can take here:
exrheader
in path
before trying to build the website.test_images.py
in the website building process. Rather, pre-transcode the website images from exr into a website format (PNG or JPEG) in the openEXR repo, and the website builder simply retrieve these website-friendly image from the repo.
@cary-ilm what do you think?Continue to learning how to build this website -- it appears the generated website in my local dir is missing style sheets.
Simply open the index.html
inside $repo\_build\website\sphinx
results in a page that looks like this:
I'm wondering how to supplement the styles, and as so, shall we edit the "how to build website" part (in the website itself!) to capture this?
@lji-ilm, I really wanted to avoid duplicating all the images as jpg's in the images repo, which was the reason to go to the trouble of converting them on the fly. In addition to the extra storage, it just seemed fragile to manage the duplicates. But for something with so little churn, maybe that's not worth the hassle.
@lji-ilm, I really wanted to avoid duplicating all the images as jpg's in the images repo, which was the reason to go to the trouble of converting them on the fly. In addition to the extra storage, it just seemed fragile to manage the duplicates. But for something with so little churn, maybe that's not worth the hassle.
hmm, in my mind it runs backwards; as what people eventually see on the website is the JPEG, some human eyes should QA the JPEG as the ground truth presentation -- it doesn't matter if the exr files was all correct but then imagemagick screwed up, right? The website is the final publication, and the publication need to look correct regardless of the technical tool generate it (and the source exr file is part of the "technical tools")
What i'm trying to say is that we should keep the website jpeg on the repo -- because the website editor (might be a non-technical professional editor) need to proof-read the jpegs and not relying on the supposed correctness of the source exr's data. They can be on a separate repo, tho.
The test image gallery step fails with: