Skip to content

Commit ec7f680

Browse files
Sync main → development (auto-merge conflict fixes)
2 parents 98ba49a + ce64655 commit ec7f680

6 files changed

Lines changed: 0 additions & 20 deletions

File tree

src/omnipkg/core.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,6 @@ def _find_project_root(self):
12261226
"""
12271227
Find the project root directory by looking for setup.py, pyproject.toml, or .git
12281228
"""
1229-
12301229
current_dir = Path.cwd()
12311230
module_dir = Path(__file__).parent.parent
12321231
search_paths = [current_dir, module_dir]
@@ -2392,7 +2391,6 @@ def get_actual_current_site_packages(self) -> Path:
23922391
This is more reliable than calculating it from sys.prefix when hotswapping is involved.
23932392
Cross-platform compatible with special handling for Windows.
23942393
"""
2395-
23962394
is_windows = platform.system() == "Windows"
23972395

23982396
try:
@@ -2513,7 +2511,6 @@ def _get_paths_for_interpreter(self, python_exe_path: str) -> Optional[Dict[str,
25132511
Runs an interpreter in a subprocess to ask for its version and calculates its site-packages path.
25142512
This is the only reliable way to get paths for an interpreter that isn't the currently running one.
25152513
"""
2516-
25172514
try:
25182515
# Step 1: Get version and prefix (this part works fine)
25192516
cmd = [
@@ -2634,7 +2631,6 @@ def _first_time_setup(self, interactive=True) -> Dict:
26342631

26352632
AUTO-DETECTS non-interactive environments (Docker, CI, piped input, etc.)
26362633
"""
2637-
26382634
# ============================================================================
26392635
# CRITICAL: Auto-detect non-interactive environments
26402636
# ============================================================================
@@ -3209,7 +3205,6 @@ def _extract_version_from_path(self, exe_path: Path) -> Optional[str]:
32093205
- /path/to/.omnipkg/interpreters/cpython-3.10-managed/bin/python3.10 → "3.10"
32103206
- /path/to/bin/python3.11 → "3.11"
32113207
"""
3212-
32133208
# Try to extract from the executable name itself
32143209
match = re.search(r'python(\d+\.\d+)', exe_path.name)
32153210
if match:
@@ -5054,7 +5049,6 @@ def _get_import_candidates_for_bubble(
50545049
(Authoritative) Finds import candidates by reading top_level.txt from the
50555050
package's .dist-info directory. Handles PyPI's inconsistent naming conventions.
50565051
"""
5057-
50585052
# Strategy 1: Find ANY .dist-info directory that might match this package
50595053
version = pkg_info["version"]
50605054
canonical = canonicalize_name(pkg_name)
@@ -5221,7 +5215,6 @@ def _fix_bubble_import_failures(
52215215

52225216
def _extract_missing_module_name(self, error_msg: str) -> str:
52235217
"""Extract the specific missing module name from error messages."""
5224-
52255218
# Try different patterns for extracting module names
52265219
patterns = [
52275220
r"No module named '([^']+)'",
@@ -6359,7 +6352,6 @@ def _self_heal_omnipkg_installation(self):
63596352
2. Managed interpreters (in .omnipkg/) NEVER trigger syncs
63606353
3. On Windows, extra conservative - can be disabled entirely
63616354
"""
6362-
63636355
overall_start = time.perf_counter_ns()
63646356

63656357
# === SAFETY CHECK 1: Determine if we're the native interpreter ===
@@ -9185,7 +9177,6 @@ def show_package_info(
91859177
"""
91869178
Enhanced package data display with interactive selection.
91879179
"""
9188-
91899180
c_name = canonicalize_name(pkg_name)
91909181

91919182
# Find all installations
@@ -12112,7 +12103,6 @@ def _schedule_background_kb_scan(self, bubble_paths: Dict[str, Path], python_ver
1211212103
"""
1211312104
Launches a non-blocking background process to scan nested packages inside bubbles.
1211412105
"""
12115-
1211612106
bubble_list = [f"{name}:{path}" for name, path in bubble_paths.items()]
1211712107

1211812108
# Create a background scan script
@@ -13227,7 +13217,6 @@ def _register_package_in_knowledge_base(
1322713217

1322813218
def _get_current_timestamp(self) -> str:
1322913219
"""Helper to get current timestamp for knowledge base entries."""
13230-
1323113220
return datetime.datetime.now().isoformat()
1323213221

1323313222
def _find_package_installations(

src/omnipkg/integration/ci_integration.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ def run(
3636
8pkg run black --check .
3737
8pkg run pytest tests/
3838
"""
39-
4039
# Combine command and args for execution
4140
all_args = [command] + (args or [])
4241
exit_code = handle_run_command(all_args)
@@ -60,7 +59,6 @@ def activate(shell: Optional[str] = typer.Option(None, help="Shell type (bash, z
6059
lollama start-mining # Auto-heals conflicts!
6160
black . # Auto-heals conflicts!
6261
"""
63-
6462
sys.exit(cmd_activate([shell] if shell else []))
6563

6664

src/omnipkg/isolation/worker_daemon.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1645,7 +1645,6 @@ def execute_with_activity_monitoring(
16451645
Returns:
16461646
Response dict from worker
16471647
"""
1648-
16491648
import psutil
16501649

16511650
try:
@@ -1733,7 +1732,6 @@ def _discover_cuda_paths(self) -> List[str]:
17331732
Discover CUDA library paths for this package spec.
17341733
Dynamically detects CUDA version requirement (cu11 vs cu12).
17351734
"""
1736-
17371735
cuda_paths = []
17381736

17391737
# 1. Detect required CUDA version from spec
@@ -4376,7 +4374,6 @@ def cli_status():
43764374

43774375
def cli_logs(follow: bool = False, tail_lines: int = 50):
43784376
"""View or follow the daemon logs."""
4379-
43804377
log_path = Path(DAEMON_LOG_FILE)
43814378
if not log_path.exists():
43824379
safe_print(_('❌ Log file not found at: {}').format(log_path))

src/omnipkg/loader.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1400,7 +1400,6 @@ def _get_version_from_original_env(self, package_name: str, requested_version: s
14001400
CRITICAL FIX: Strictly checks self.site_packages_root to avoid confusion
14011401
from parent loaders' bubbles in sys.path.
14021402
"""
1403-
14041403
canonical_target = canonicalize_name(package_name)
14051404
filesystem_name = package_name.replace("-", "_")
14061405

src/omnipkg/package_meta_builder.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1844,7 +1844,6 @@ def _get_instance_hash(self, dist: importlib.metadata.Distribution) -> str:
18441844
(AUTHORITATIVE) Generates the one true, consistent instance hash for any
18451845
distribution by using its real, canonical path.
18461846
"""
1847-
18481847
# This is the single source of truth for a package's physical location.
18491848
# os.path.realpath resolves symlinks and gives the canonical path.
18501849
resolved_path_str = os.path.realpath(str(dist._path))

src/tests/test_loader_stress_test.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3521,7 +3521,6 @@ def chaos_test_21_gpu_resident_pipeline():
35213521
📍 PHASE 4: Zero-Copy Data Pipeline
35223522
NOW ACTUALLY USES PyTorch 1.13's native CUDA IPC!
35233523
"""
3524-
35253524
safe_print(f"\n{'═'*66}")
35263525
safe_print("║ TEST 21: 🔥 GPU-RESIDENT MULTI-VERSION PIPELINE ║")
35273526
safe_print("║ PyTorch 1.13.1 with NATIVE CUDA IPC (True Zero-Copy!) ║")
@@ -3751,7 +3750,6 @@ def chaos_test_22_complete_ipc_benchmark():
37513750
37523751
Tests the same 3-stage pipeline across all modes with proper warmup.
37533752
"""
3754-
37553753
safe_print(f"\n{'═'*66}")
37563754
safe_print("║ TEST 22: 🔥 COMPLETE IPC MODE BENCHMARK ║")
37573755
safe_print("║ Same Pipeline × 4 Different Execution Modes ║")

0 commit comments

Comments
 (0)