The ply package is a 100% Python implementation of the common parsing tools 'lex' and 'yacc'.
This package is known to build and work properly using an LFS 12.4 platform.
Download (HTTP): https://files.pythonhosted.org/packages/source/p/ply/ply-3.11.tar.gz
Download SHA256 Sum: 00c7c1aaa88358b9c765b6d3000c6eec0ba42abca5351b095321aef446081da3
Download MD5 sum: 6465f602e656455affcd7c5734c638f8
Download size: 156 KB
Estimated disk space required: 2.2 MB
Estimated build time: less than 0.1 SBU
Build the module:
pip3 wheel -w dist --no-build-isolation --no-deps --no-cache-dir $PWD
Now, as the root user:
pip3 install --no-index --find-links dist --no-user ply
To run the tests, issue:
pushd test
sed -i 's/self.assert_/self.assertTrue/' test{lex,yacc}.py
sed -i 's/"ERROR:/r"ERROR:/' testlex.py
python3 testlex.py
python3 testyacc.py
popd