@@ -26,28 +26,38 @@ jobs:
2626 - name : Install dependencies
2727 run : python -m pip install --upgrade pip build
2828
29- - name : Install package and test deps (install inner package dir )
29+ - name : Install package and test deps (verbose )
3030 run : |
31- python -m pip install --upgrade pip
32- # install the package directory explicitly (editable) and extras for testing
33- python -m pip install -e ./GabesPythonToolBox[testing]
31+ python -m pip install --upgrade pip setuptools wheel -v
32+ # verbose install, capture output
33+ python -m pip install -v -e ./GabesPythonToolBox[testing] || python -m pip install -v -e ./GabesPythonToolBox || true
34+ echo "=== pip list ==="
35+ python -m pip list
36+ echo "=== pip show package ==="
37+ python -m pip show GabesPythonToolBox || python -m pip show GabesPythonToolBox || true
38+ echo "=== installed modules (top-level) ==="
39+ python - <<'PY'
40+ import pkgutil, sys
41+ mods = sorted(x.name for x in pkgutil.iter_modules())
42+ print("modules count:", len(mods))
43+ for m in mods[:200] :
44+ print(m)
45+ PY
3446
35- - name : Debug repository layout (helpful if imports still fail)
47+ - name : Debug import and sys.path
3648 run : |
3749 python - <<'PY'
38- import sys, os
50+ import sys, traceback, os
3951print("cwd:", os.getcwd())
40- print("PYTHONPATH env:", os.environ.get("PYTHONPATH"))
41- print("sys.path:")
42- for p in sys.path :
52+ print("env PYTHONPATH :", os.environ.get("PYTHONPATH"))
53+ print("sys.path (first 10) :")
54+ for p in sys.path[:10] :
4355 print(" ", p)
44- print("\nTop-level files and dirs:")
45- print(os.listdir("."))
4656try :
4757 import GabesPythonToolBox
4858 print("Imported GabesPythonToolBox from:", getattr(GabesPythonToolBox, "__file__", repr(GabesPythonToolBox)))
49- except Exception as e :
50- print("Importing GabesPythonToolBox failed:", type(e).__name__, e )
59+ except Exception :
60+ traceback.print_exc( )
5161PY
5262
5363 - name : Ensure repo on PYTHONPATH for tests
0 commit comments