Hello You can control the shebang through an option: python-dbg setup.py build --executable /usr/bin/python This is distutils behavior, I don’t know how setuptools script generation works. Hope this helps. By the way, I don’t know the standard practice for replying on this list, so I’m not cc’ing anyone. Regards