Commit 730c8eb
committed
fix: Resolve NameErrors in setup and bubble isolation logic
Core Setup: Restored the missing rebuild_cmd definition in _first_time_setup. This ensures the knowledge base is correctly initialized via omnipkg.cli reset without causing recursion crashes during the first-time configuration.
Bubble Isolation:
Added missing site module import (aliased as site_module) within _create_bubble_from_editable_install to resolve NameError when retrieving system site-packages.
Implemented lazy import for requests (aliased as http_requests) in _try_pypi_api. This fixes the NameError for requests and ensures the manager doesn't crash on systems where the requests library is not installed.
Modified:
• src/omnipkg/core.py (+14/-3 lines)
[gitship-generated]1 parent 5e89cf2 commit 730c8eb
1 file changed
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2823 | 2823 | | |
2824 | 2824 | | |
2825 | 2825 | | |
| 2826 | + | |
| 2827 | + | |
| 2828 | + | |
| 2829 | + | |
| 2830 | + | |
| 2831 | + | |
| 2832 | + | |
2826 | 2833 | | |
2827 | 2834 | | |
2828 | 2835 | | |
| |||
4240 | 4247 | | |
4241 | 4248 | | |
4242 | 4249 | | |
| 4250 | + | |
| 4251 | + | |
| 4252 | + | |
4243 | 4253 | | |
4244 | 4254 | | |
4245 | 4255 | | |
| |||
4478 | 4488 | | |
4479 | 4489 | | |
4480 | 4490 | | |
| 4491 | + | |
4481 | 4492 | | |
4482 | 4493 | | |
4483 | 4494 | | |
| |||
4490 | 4501 | | |
4491 | 4502 | | |
4492 | 4503 | | |
4493 | | - | |
| 4504 | + | |
4494 | 4505 | | |
4495 | 4506 | | |
4496 | 4507 | | |
4497 | | - | |
| 4508 | + | |
4498 | 4509 | | |
4499 | 4510 | | |
4500 | 4511 | | |
| |||
4521 | 4532 | | |
4522 | 4533 | | |
4523 | 4534 | | |
4524 | | - | |
| 4535 | + | |
4525 | 4536 | | |
4526 | 4537 | | |
4527 | 4538 | | |
| |||
0 commit comments