Skip to content

Use importlib to handle version and package resources, where available#1462

Merged
peterbarker merged 6 commits into
ArduPilot:masterfrom
peterbarker:pr/importlib
Apr 9, 2026
Merged

Use importlib to handle version and package resources, where available#1462
peterbarker merged 6 commits into
ArduPilot:masterfrom
peterbarker:pr/importlib

Conversation

@peterbarker

@peterbarker peterbarker commented Oct 1, 2024

Copy link
Copy Markdown
Contributor

We fall back to the previous efforts on failure.

Tested back to 3.6

2.7 was a complete write-off due to pre-existing changes.

@peterbarker

Copy link
Copy Markdown
Contributor Author

Rejig this to just use importlib on Windows

@peterbarker

Copy link
Copy Markdown
Contributor Author

Since pkg_resources is going away and importlib has worked since forever, move to just using it now.

@peterbarker peterbarker force-pushed the pr/importlib branch 2 times, most recently from 605ce0f to a6eddc4 Compare February 25, 2026 03:35
@peterbarker

Copy link
Copy Markdown
Contributor Author

Closes #1672

@stephendade

Copy link
Copy Markdown
Contributor

Tested on Windows. Works well!

@peterbarker

Copy link
Copy Markdown
Contributor Author

Tested on Windows. Works well!

Fantastic, thanks!

Merging this one.

@peterbarker peterbarker merged commit 661671b into ArduPilot:master Apr 9, 2026
2 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