show compile-time constants
+import json
import os
import sys
from typing import List, Tuple
@@ -108,6 +109,9 @@ class custom_build_ext(setuptools.command.build_ext.build_ext):
compile_time_env['CUPY_CUDA_VERSION'] = build.get_cuda_version()
compile_time_env['CUPY_HIP_VERSION'] = 0
+ print('Compile-time constants: ' +
+ json.dumps(compile_time_env, indent=4))
+
Cython.Build.cythonize(
self.extensions, verbose=True, language_level=3,
compiler_directives=compiler_directives, annotate=ctx.annotate,
