jamesbowman / swapforth

Swapforth is a cross-platform ANS Forth
BSD 3-Clause "New" or "Revised" License
275 stars 56 forks source link

The changes needed to simulate j1b with new Python3 and Verilator used in Debian/testing #85

Open wzab opened 9 months ago

wzab commented 9 months ago

The changes below enable running "localtest" or "bootstrap" in j1b/verilator directory on machines running Debian/testing Linux.

Without those changes, the Python package needed for simulations could not be built and locally installed properly. To use that modified version, you should create a virtual environment, activate it and install both setuptools and build in it:

python3 -m venv env
. env/bin/activate
pip3 install --upgrade setuptools
pip3 install --upgrade build

After the above, you should be able to run ./localtest or ./bootstrap in j1b/verilator subdirectory (assuming other prerequisites are installed).