@@ -28,19 +28,19 @@ A few examples of problem packages can be found in [examples](examples).
2828
2929## Installing problemtools
3030
31- There are four recommended ways of installing and running problemtools.
31+ There are four supported ways of installing and running problemtools.
3232(For non-Linux users, "Method 2" below, to use Docker, is probably the least painful.)
3333
3434### Method 1: Install the Python package
3535
3636Run
3737```
38- pip install git+https://github.com/kattis/problemtools
38+ pip3 install git+https://github.com/kattis/problemtools
3939```
4040
4141Or if you don't want a system-wide installation,
4242```
43- pip install --user git+https://github.com/kattis/problemtools
43+ pip3 install --user git+https://github.com/kattis/problemtools
4444```
4545With this second option, in order to get the command line scripts, you need
4646to make sure that the local user bin path used (e.g., on Linux,
@@ -153,18 +153,18 @@ problemtools' configuration:
153153
1541541. `languages.yaml`. Use it to override problemtools' default
155155 programming language configuration. For instance, while the
156- problemtools default is to use the CPython `/usr/bin/python2 `
157- interpreter for Python 2 , many contests, as well as the Kattis
158- online judge, use Pypy as the interpreter for Python 2 . To change
156+ problemtools default is to use the CPython `/usr/bin/python3 `
157+ interpreter for Python 3 , many contests, as well as the Kattis
158+ online judge, use Pypy as the interpreter for Python 3 . To change
159159 this on your machine, you can simply place a file
160160 `/etc/kattis/problemtools/languages.yaml` (or
161161 `~/.config/problemtools/languages.yaml` if you only want to make the
162162 change for your user) containing the following:
163163
164164 ```yaml
165- python2 :
166- name: 'Python 2 w/Pypy'
167- run: '/usr/bin/pypy "{mainfile}"'
165+ python3 :
166+ name: 'Python 3 w/Pypy'
167+ run: '/usr/bin/pypy3 "{mainfile}"'
168168 ```
169169 Here, overriding the name of the language is not strictly
170170 necessary, but it is often helpful to clearly indicate that Pypy is
@@ -196,28 +196,28 @@ problemtools' configuration:
196196
197197## Requirements and compatibility
198198
199- To build and run the tools, you need Python 2 with the YAML and PlasTeX libraries,
199+ To build and run the tools, you need Python 3 with the YAML and PlasTeX libraries,
200200and a LaTeX installation.
201201
202202### Ubuntu
203203
204204The dependencies needed to *build/install* problemtools can be installed with:
205205
206- sudo apt install automake g++ make libboost-regex-dev libgmp-dev libgmp10 libgmpxx4ldbl python python -pytest python -setuptools python -yaml
206+ sudo apt install automake g++ make libboost-regex-dev libgmp-dev libgmp10 libgmpxx4ldbl python3 python3 -pytest python3 -setuptools python3 -yaml python3-plastex
207207
208208And the dependencies needed to *run* problemtools can be installed with:
209209
210- sudo apt install ghostscript libgmpxx4ldbl python -minimal python-pkg-resources python -plastex python -yaml texlive-fonts-recommended texlive-generic-recommended texlive- lang-cyrillic texlive-latex-extra texlive-latex-recommended tidy
210+ sudo apt install ghostscript libgmpxx4ldbl python3 -minimal python-pkg-resources python3 -plastex python3 -yaml texlive-fonts-recommended texlive-lang-cyrillic texlive-latex-extra texlive-plain-generic tidy
211211
212212### Fedora
213213
214214On Fedora, these dependencies can be installed with:
215215
216- sudo dnf install boost-regex gcc gmp-devel gmp-c++ python2 python2 -pyyaml texlive-latex texlive-collection-fontsrecommended texlive-fancyhdr texlive-subfigure texlive-wrapfig texlive-import texlive-ulem texlive-xifthen texlive-overpic texlive-pbox tidy ghostscript
216+ sudo dnf install boost-regex gcc gmp-devel gmp-c++ python3 python3 -pyyaml texlive-latex texlive-collection-fontsrecommended texlive-fancyhdr texlive-subfigure texlive-wrapfig texlive-import texlive-ulem texlive-xifthen texlive-overpic texlive-pbox tidy ghostscript
217217
218218Followed by:
219219
220- pip2 install --user plastex
220+ pip3 install --user plastex
221221
222222### Other platforms
223223
0 commit comments