mit neuen venv und exe-Files

This commit is contained in:
2024-11-03 17:26:54 +01:00
parent 07c05a338a
commit 0c373ff593
15115 changed files with 1998469 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import os
import sys
import gevent
import gevent.core
import subprocess
if not sys.argv[1:]:
os.environ['GEVENT_BACKEND'] = 'select'
# (not in Py2) pylint:disable=consider-using-with
popen = subprocess.Popen([sys.executable, __file__, '1'])
assert popen.wait() == 0, popen.poll()
else: # pragma: no cover
hub = gevent.get_hub()
# pylint:disable-next=no-member
if 'select' in gevent.core.supported_backends():
assert hub.loop.backend == 'select', hub.loop.backend
else:
# libuv isn't configurable
assert hub.loop.backend == 'default', hub.loop.backend