Skip to content

fix(docker): remove hardcoded python3.10 paths in OOT stage#1123

Merged
valarLip merged 1 commit into
mainfrom
Jasen/fix_dockerfile
Jun 8, 2026
Merged

fix(docker): remove hardcoded python3.10 paths in OOT stage#1123
valarLip merged 1 commit into
mainfrom
Jasen/fix_dockerfile

Conversation

@Jasen2201
Copy link
Copy Markdown
Contributor

The OOT stage had 7 occurrences of hardcoded
/opt/venv/lib/python3.10/site-packages/ paths, which break when building with py3.12 base images.

  • LD_LIBRARY_PATH: replace hardcoded ENV with dynamic torch lib detection via ldconfig
  • triton backup/restore: use sysconfig.get_path('purelib') to resolve site-packages at build time

Motivation

Technical Details

Test Plan

Test Result

Submission Checklist

The OOT stage had 7 occurrences of hardcoded
`/opt/venv/lib/python3.10/site-packages/` paths, which break when
building with py3.12 base images.

- LD_LIBRARY_PATH: replace hardcoded ENV with dynamic torch lib
  detection via ldconfig
- triton backup/restore: use `sysconfig.get_path('purelib')` to
  resolve site-packages at build time
Copilot AI review requested due to automatic review settings June 7, 2026 11:21
@Jasen2201
Copy link
Copy Markdown
Contributor Author

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the atom_oot Docker build stage to avoid hardcoded Python 3.10 site-packages paths, improving compatibility with newer base images (e.g., Python 3.12) while preserving the existing Triton backup/restore behavior.

Changes:

  • Replaces the hardcoded LD_LIBRARY_PATH torch lib entry with a dynamically generated /etc/ld.so.conf.d/torch.conf + ldconfig.
  • Resolves site-packages dynamically via sysconfig.get_path('purelib') for Triton backup/restore paths.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@valarLip valarLip merged commit b94aa08 into main Jun 8, 2026
23 of 33 checks passed
@valarLip valarLip deleted the Jasen/fix_dockerfile branch June 8, 2026 06:45
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.

3 participants