Skip to content

Commit f9c6191

Browse files
committed
Prime Python before libc links to avoid lib64 directory conflict
1 parent 68e7de5 commit f9c6191

2 files changed

Lines changed: 19 additions & 16 deletions

File tree

‎.github/workflows/snap.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ jobs:
4242
path: |
4343
${{ steps.build.outputs.snap }}
4444
snap-evidence/
45-
if-no-files-found: error
45+
if-no-files-found: warn

‎snap/snapcraft.yaml‎

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# - GCC/G++ 13 + binutils + glibc headers (Ubuntu 24.04 packages, staged below)
55
# - Temurin JDK 25 (same JDK as the Windows build)
66
# - Python 3.12 (already the runtime of the IDE itself)
7-
# So a strict snap passes the automatic review and is published immediately.
7+
# The strict package must still pass Store review and runtime tests before release.
88
# HOW gcc works inside the sandbox: snap/local/toolwrap/gcc runs gcc-13 --sysroot=$SNAP, so
99
# headers and libs come from the snap; glibc itself comes from the core24 base (see the
1010
# `libc-links` part). Limits of strict: files only under your home folder (not hidden dot
@@ -14,19 +14,20 @@ name: medha-ide
1414
title: MEDHA IDE
1515
summary: Offline IDE for C, C++, Java, Python and Turbo C graphics.h
1616
description: |
17-
MEDHA is a native desktop IDE (Python + PySide6/Qt 6). No Electron, no browser.
18-
v2: Turbo C mode (graphics.h / conio.h / iostream.h run unchanged in a 640x480
19-
panel), Java and Python run, beginner error explanations (English / Hinglish),
20-
offline security scan, "Modernize this code" (Turbo -> C11/C++17), 56 lab programs.
21-
It uses the compilers and tools already on your system:
17+
MEDHA is a native desktop IDE (Python + PySide6/Qt 6) with bundled GCC/G++,
18+
Eclipse Temurin JDK 25 and Python for offline C, C++, Java and Python programs.
2219
- Multi-tab editor with syntax highlighting and symbol outline
23-
- Real compile and run (gcc, g++, python3) with a Problems panel
24-
- Integrated terminal (real shell)
25-
- LSP (clangd, pylsp), GDB / debugpy debugging, Git, CMake builds
26-
- Local AI chat panel through Ollama (optional)
27-
- Extensions from Open VSX: color themes, snippets, a grammar subset
28-
Everything works offline except searching/downloading extensions.
29-
LSP, debugpy and Ollama features need those tools installed on your system.
20+
- Compile and run with a Problems panel and integrated terminal
21+
- Turbo C mode: graphics.h/conio.h in a 640x480 panel
22+
- Beginner error explanations in English and Hinglish
23+
- Offline security scan, Turbo C modernization and example lab programs
24+
- Optional local Ollama AI and Open VSX themes/snippets/grammar data
25+
Network access is needed for extension downloads and the optional AI service.
26+
This strict snap works with visible files in your home directory. Removable
27+
drives require connecting the removable-media interface. Host-installed tools
28+
and language servers are not available inside this package, and GDB debugging
29+
is not supported by this confined build.
30+
3031
license: GPL-3.0-or-later
3132
contact: kanakprabhakar72@gmail.com
3233
website: https://github.com/Kanak234/medha-ide
@@ -150,7 +151,9 @@ parts:
150151
# (Verified: C + C++ compile and run with host headers hidden, only the sysroot visible.)
151152
libc-links:
152153
plugin: nil
153-
after: [compilers]
154+
# Prime the Python venv first: it creates lib64 -> lib. Creating a real
155+
# lib64 directory before that makes python-deps fail with IsADirectoryError.
156+
after: [compilers, python-deps]
154157
override-prime: |
155158
craftctl default
156159
for pkg in libc6 libgcc-s1 libstdc++6; do
@@ -204,7 +207,7 @@ apps:
204207
command: bin/launch-medha
205208
desktop: usr/share/applications/io.github.Kanak234.Medha.desktop
206209
common-id: io.github.Kanak234.Medha
207-
# All of these auto-connect, so no manual review is triggered.
210+
# Standard desktop interfaces; removable-media may need a manual connection.
208211
plugs:
209212
- home # open/save projects in your home folder
210213
- removable-media # USB drives (lab PCs)

0 commit comments

Comments
 (0)