Skip to content

Commit 92364fd

Browse files
committed
Add debug output to build.py
1 parent d5de8b3 commit 92364fd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

build.py

+10
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ def build(setup_kwargs):
88
from Cython.Build import cythonize
99

1010
use_cython = True
11+
print("Cython is available")
1112
except ImportError:
1213
use_cython = False
14+
print("Cython is not available")
1315

1416
if use_cython:
1517
try:
@@ -25,8 +27,16 @@ def build(setup_kwargs):
2527
)
2628
setup_kwargs.update({"ext_modules": ext_modules})
2729
print("Cython modules prepared for compilation")
30+
print(f"Number of extensions: {len(ext_modules)}")
31+
for ext in ext_modules:
32+
print(f"Extension: {ext.name}")
2833
except Exception as e:
2934
print(f"Failed to prepare Cython modules: {e}")
3035
print("Falling back to pure Python")
3136
else:
3237
print("Cython not available, using pure Python")
38+
39+
print(f"Current working directory: {os.getcwd()}")
40+
print(f"Contents of current directory: {os.listdir('.')}")
41+
print(f"Contents of iscc_core directory: {os.listdir('iscc_core')}")
42+
print(f"Setup kwargs: {setup_kwargs}")

0 commit comments

Comments
 (0)