How to publish exe files through source code can be run in the environment without python

1.when i use the setuptools as : ,the exe cant work with out python.
2.when i use run the file cibuild.py build . (raise BuildError(“We’re on neither a tag nor a branch - could not establish version”))

so how to build the exe file as pyinstaller .

System information

Mitmproxy: 5.0.0.dev
Python: 3.6.6
OpenSSL: OpenSSL 1.1.0h 27 Mar 2018
Platform: Windows-7-6.1.7601-SP1