New Terminal Output:

root@8beb00c26e2f:/app# cat > /app/setup.py << 'EOF'
> import sys
> import sysconfig
> try:
>     from setuptools import setup, Extension
> except ImportError:
>     from distutils.core import setup, Extension
>
> module = Extension(
>     'nogil_ext',
>     sources=['nogil_ext.c'],
>     extra_compile_args=['-O2', '-std=c11'],
> )
>
> setup(name='nogil_ext', version='1.0', ext_modules=[module])
> EOF
root@8beb00c26e2f:/app# cd /app && /usr/local/bin/python3.13t setup.py build_ext --inplace
Traceback (most recent call last):
  File "/app/setup.py", line 4, in <module>
    from setuptools import setup, Extension
ModuleNotFoundError: No module named 'setuptools'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/app/setup.py", line 6, in <module>
    from distutils.core import setup, Extension
ModuleNotFoundError: No module named 'distutils'
root@8beb00c26e2f:/app#
