You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mitogen/mitogen
Alex Willmer 552819e765 mitogen.parent: Detect and avoid Python2.7 wrapper on macOS 11 & 12
Without this errors such as the following occur
```
✗ MITOGEN_LOG_LEVEL=DEBUG python3 foo.py
Python: execv: (null): No such file or directory
Traceback (most recent call last):
  File "foo.py", line 16, in <module>
    target = router.local(python_path='/usr/bin/python2.7', debug=True)
  File "/Users/alex/src/mitogen2/mitogen/parent.py", line 2486, in local
    return self.connect(u'local', **kwargs)
  File "/Users/alex/src/mitogen2/mitogen/parent.py", line 2446, in connect
    return self._connect(klass, **mitogen.core.Kwargs(kwargs))
  File "/Users/alex/src/mitogen2/mitogen/parent.py", line 2426, in _connect
    conn.connect(context=context)
  File "/Users/alex/src/mitogen2/mitogen/parent.py", line 1708, in connect
    raise self.exception
mitogen.parent.EofError: EOF on stream; last 100 lines received:
MITO000
MITO001
```

Before
```
$ ./preamble_size.py
SSH command size: 625
Bootstrap (mitogen.core) size: 17007 (16.61KiB)

                              Original          Minimized           Compressed
mitogen.parent            97496 95.2KiB  50355 49.2KiB 51.6%  12663 12.4KiB 13.0%
mitogen.fork               8436  8.2KiB   4130  4.0KiB 49.0%   1648  1.6KiB 19.5%
mitogen.ssh               10892 10.6KiB   6952  6.8KiB 63.8%   2113  2.1KiB 19.4%
mitogen.sudo              12089 11.8KiB   5924  5.8KiB 49.0%   2249  2.2KiB 18.6%
mitogen.select            12325 12.0KiB   2929  2.9KiB 23.8%    964  0.9KiB 7.8%
mitogen.service           41644 40.7KiB  22431 21.9KiB 53.9%   5886  5.7KiB 14.1%
mitogen.fakessh           15599 15.2KiB   8011  7.8KiB 51.4%   2624  2.6KiB 16.8%
mitogen.master            48732 47.6KiB  24569 24.0KiB 50.4%   6768  6.6KiB 13.9%
```

After
```
$ ./preamble_size.py
SSH command size: 705
Bootstrap (mitogen.core) size: 17007 (16.61KiB)

                              Original          Minimized           Compressed
mitogen.parent            97885 95.6KiB  50516 49.3KiB 51.6%  12728 12.4KiB 13.0%
mitogen.fork               8436  8.2KiB   4130  4.0KiB 49.0%   1648  1.6KiB 19.5%
mitogen.ssh               10892 10.6KiB   6952  6.8KiB 63.8%   2113  2.1KiB 19.4%
mitogen.sudo              12089 11.8KiB   5924  5.8KiB 49.0%   2249  2.2KiB 18.6%
mitogen.select            12325 12.0KiB   2929  2.9KiB 23.8%    964  0.9KiB 7.8%
mitogen.service           41644 40.7KiB  22431 21.9KiB 53.9%   5886  5.7KiB 14.1%
mitogen.fakessh           15599 15.2KiB   8011  7.8KiB 51.4%   2624  2.6KiB 16.8%
mitogen.master            48733 47.6KiB  24570 24.0KiB 50.4%   6771  6.6KiB 13.9%
```
3 years ago
..
compat compat: fix Py2.4 SyntaxError 5 years ago
__init__.py Increment version to 0.3.1.dev0 3 years ago
buildah.py [stream-refactor] port mitogen.buildah, added to master since work began 5 years ago
core.py Add podman connection support 3 years ago
debug.py [stream-refactor] fix flake8 errors 5 years ago
doas.py remove unused imports flagged by lgtm 5 years ago
docker.py Refactor Stream, introduce quasi-asynchronous connect, much more 5 years ago
fakessh.py [stream-refactor] rename Process attrs, fix up more create_child_test 5 years ago
fork.py Merge devel/290 @ 79b979ec8544ef5d8620c64068d4a42fabf50415 5 years ago
jail.py Stop using mitogen root logger in more modules, remove unused loggers 5 years ago
kubectl.py Stop using mitogen root logger in more modules, remove unused loggers 5 years ago
lxc.py Stop using mitogen root logger in more modules, remove unused loggers 5 years ago
lxd.py Stop using mitogen root logger in more modules, remove unused loggers 5 years ago
master.py adding clarifying comments 4 years ago
minify.py Normalize docstring formatting 5 years ago
os_fork.py os_fork: do not attempt to cork the active thread. 5 years ago
parent.py mitogen.parent: Detect and avoid Python2.7 wrapper on macOS 11 & 12 3 years ago
podman.py Add podman connection support 3 years ago
profiler.py Fix stdlib typos that would cause NameError or AttributeError exceptions 3 years ago
select.py Merge devel/290 @ 79b979ec8544ef5d8620c64068d4a42fabf50415 5 years ago
service.py see if sys.path is being loaded properly on azure 4 years ago
setns.py Refactor Stream, introduce quasi-asynchronous connect, much more 5 years ago
ssh.py ssh: Match newer ssh host key prompt that accepts the fingerprint 4 years ago
su.py Stop using mitogen root logger in more modules, remove unused loggers 5 years ago
sudo.py reverted autolinted code 5 years ago
unix.py core: MitogenProtocol.is_privileged was not set in children 5 years ago
utils.py Stop using mitogen root logger in more modules, remove unused loggers 5 years ago