[Swan-dev] how to get around python 3.7.1+ hanging kvmrunner on f29 (the hard way)

Andrew Cagney andrew.cagney at gmail.com
Thu Apr 11 20:43:47 UTC 2019


(the easy way is 'dnf downgrade python3')
I've pushed a tentative fix to ptyprocess so that it it avoids all the
Python subprocess / fork / ... crap.  However, using it isn't trivial.
The below is an untested outline:

- lets assume cwd is /home/python

- clone, configure, build python mainline aka 3.8 (it adds
os.posix_spawn()) with something like:

    $ git clone https://github.com/python/cpython.git
    $ ( cd cpython && ./configure --prefix=/home/python/v3.8 && make
-j && make -j install )

- $ git clone https://github.com/pexpect/pexpect.git

- $ git clone https://github.com/cagney/ptyprocess.git
  hacked to use os.posix_spawn()

- In Makefile.inc.local, point KVM_PYTHON at above, something like
(with /home/python replaced with something better):
      KVM_PYTHON =
PYTHONPATH=/home/python/pexpect:/home/python/ptyprocess
/home/python/v3.8/bin/python3

I'm testing it on an f28 system, so far so good ....


More information about the Swan-dev mailing list