Skip to content

Commit

Permalink
Add debug output to build.py
Browse files Browse the repository at this point in the history
  • Loading branch information
titusz committed Oct 19, 2024
1 parent d5de8b3 commit 92364fd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ def build(setup_kwargs):
from Cython.Build import cythonize

use_cython = True
print("Cython is available")
except ImportError:
use_cython = False
print("Cython is not available")

if use_cython:
try:
Expand All @@ -25,8 +27,16 @@ def build(setup_kwargs):
)
setup_kwargs.update({"ext_modules": ext_modules})
print("Cython modules prepared for compilation")
print(f"Number of extensions: {len(ext_modules)}")
for ext in ext_modules:
print(f"Extension: {ext.name}")
except Exception as e:
print(f"Failed to prepare Cython modules: {e}")
print("Falling back to pure Python")
else:
print("Cython not available, using pure Python")

print(f"Current working directory: {os.getcwd()}")
print(f"Contents of current directory: {os.listdir('.')}")
print(f"Contents of iscc_core directory: {os.listdir('iscc_core')}")
print(f"Setup kwargs: {setup_kwargs}")

0 comments on commit 92364fd

Please sign in to comment.