Debian Codegraph @

INSTALL

raw
1 PyChess does not have to be compiled/installed to run.
2
3 To run execute the following in this directory:
4 $ ./pychess
5
6 To install system wide run following as root
7 # python3 setup.py install
8
9 To see other install options/formats:
10 $ python3 setup.py --help-commands
11
12 To run the pychess engine in text based mode
13 $ PYTHONPATH=lib/ python3 lib/pychess/Players/PyChess.py
14
15 To run unit tests for pychess:
16 cd testing
17 $ ./run3 run_tests.py
18
19 --------------------------------------
20 Developers shoud install some linters:
21 pip install flake8
22 pip install pep8-naming
23 flake8 --install-hook=git
24 git config flake8.strict true
25
26 -------------------------------
27 PyChess learning modules need stockfish to be installed
28
29 -------------------------------
30 Dependencies for Ubuntu/Debian:
31 stockfish
32 gnome-icon-theme
33 python3
34 python3-cairo
35 python3-gi
36 python3-gi-cairo
37 python3-sqlalchemy
38 python3-pexpect
39 python3-psutil
40 python3-websockets
41 gobject-introspection
42 gir1.2-glib-2.0
43 gir1.2-gtk-3.0
44 gir1.2-pango-1.0
45 gir1.2-rsvg-2.0
46 gir1.2-gdkpixbuf-2.0
47 gir1.2-gtksource-3.0
48 gir1.2-gstreamer-1.0
49 gir1.2-gst-plugins-base-1.0
50 (If you have no sound in pychess try to install gstreamer1.0-pulseaudio)
51
52 (Creating .rpm packages needs rpm, creating .deb needs python3-stdeb)
53
54 --------------------------------------------
55 Dependencies for CentOS/RHEL7 and Fedora 20:
56 stockfish
57 python3
58 python3-gobject
59 python3-cairo
60 gobject-introspection
61 glib2
62 gtk3
63 pango
64 gdk-pixbuf2
65 gtksourceview3
66 gstreamer1
67 gstreamer1-plugins-base
68 python3-sqlalchemy
69 python3-pexpect
70 python3-psutil
71 python3-websockets
72
73 ----------------------
74 Dependencies for Arch:
75 stockfish
76 python
77 python-gobject
78 python-cairo
79 python-sqlalchemy
80 python-pexpect
81 python-psutil
82 python-websockets
83 gobject-introspection
84 glib2
85 gtk3
86 pango
87 gdk-pixbuf2
88 gtksourceview3
89 gstreamer
90 gst-plugins-base
91
92 -------------------------
93 Dependencies for 64bit Python 3.8.x on Windows:
94 Go to https://msys2.github.io/ and download the x86_64 installer
95 In C:\msys64\mingw64.exe terminal run:
96
97 pacman -S mingw-w64-x86_64-python mingw-w64-x86_64-python-cairo mingw-w64-x86_64-gobject-introspection mingw-w64-x86_64-libffi
98 pacman -S mingw-w64-x86_64-gtk3 mingw-w64-x86_64-python-gobject mingw-w64-x86_64-gtksourceview3 mingw-w64-x86_64-freetype
99 pacman -S mingw-w64-x86_64-python-sqlalchemy mingw-w64-x86_64-python-pexpect mingw-w64-x86_64-python-psutil
100 pacman -S --needed base-devel mingw-w64-x86_64-toolchain
101 pacman -S mingw-w64-x86_64-python-pip git
102 pip install websockets
103
104 In msys64 console window run:
105 python ./pychess
106
107 To create .msi installer:
108 pacman -S mingw-w64-x86_64-python-cx_Freeze
109 # You may need this on licalized Windows unless cx_Freeze will fail
110 export LC_ALL=C
111 python setup.py bdist_msi
112
113 -------------------------
114 Dependencies for macOS:
115
116 Tested on Catalina and Python 3.7.2
117
118 1. brew install
119 brew install pygobject3 gtk+3
120 brew install gst-python
121 brew install gtksourceview3
122 brew install librsvg
123 # (optional) brew install gettext
124
125 2. pip install
126 see requirements.txt