Skip to content

Conversation

@ingstem
Copy link
Contributor

@ingstem ingstem commented Jan 1, 2026

Noticed when running nmlc --version that Ply version information was missing, or gave the wrong version, as it was still trying to import the installed package, not the locally bundled package.

nmlc --version now returns the correct Ply version:

Library versions encountered:
PIL: 12.0.0
PLY: 2022.10.27

This was primarily to fix the Ply version check, but I also did some minor modifications to the Pillow import clause, so that both Pillow and Ply imports and checks are similar.

@ingstem ingstem force-pushed the codechange-version-info branch from 9e7d359 to 6e79a70 Compare January 2, 2026 01:20
- Change to using nml.ply instead of .ply in import statements
- Change imports to only import __version__
- Change Pillow import to be similar to new fixed Ply import
- Fix Ply import not using __version__ from bundled Ply
@ingstem ingstem force-pushed the codechange-version-info branch from 6e79a70 to 7c657cf Compare January 4, 2026 17:56
@ingstem ingstem changed the title Codechange: Fix Ply version check used by nmlc --version Codechange: Change Ply and Pillow import statements Jan 4, 2026
@LordAro LordAro merged commit 2901e66 into OpenTTD:master Jan 5, 2026
24 checks passed
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