-
Notifications
You must be signed in to change notification settings - Fork 51
Packaging notes
Rob Hagemans edited this page Jul 30, 2022
·
2 revisions
-
install Python 3.7.9 using python.org installer (Mac, Windows) or through apt (Linux)
-
build tools (see BUILD.md): install from pip
- Mac: use
Pillow=6.0.0
- Mac: use
-
pyserial
- install from pip (all platforms?)
-
pyaudio
- Linux: install from pip, first install
portaudio-19
using apt. Otherwise pip needsportaudio-19-dev
andpython3.7-dev
to compile the PortAudio library. - Windows: use prebuilt wheel from https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio
- Linux: install from pip, first install
-
pyparallel
- get from https://github.com/pyserial/pyparallel;
setup.py install --user
- Windows:
-
pyparallel-0.2-win32.exe
installer needsmsvcr71.dll
; copy both toc:\
and run as admin - copy
simpleio.dll
intoc:windows\system
(not sure if still needed) - we may need
giveio_setup.exe
from https://sourceforge.net/projects/pyserial/files/pyparallel/giveio/giveio_setup.exe/download
-
- get from https://github.com/pyserial/pyparallel;
- install Python 2.7.12
- install MS Visual C++ for Python 2.7. Note: needed to compile
numpy
. pip install pygame
pip install pysdl2
-
pip install pyinstaller==3.1.1
Note: 3.2 has a bug that causes it to look formsvc100
and fail. -
pip install numpy==1.9.2
Note: newernumpy
works, but the pip version includes the 12MiB ATLAS dll which we don't need. pip install pyserial==2.7
- install SDL2 library
- install PyParallel 0.2 from https://sourceforge.net/projects/pyserial/files/pyparallel/0.2/pyparallel-0.2.win32.exe
- install NSIS 2.46 (including
strlen-8192.zip
) from http://nsis.sourceforge.net/Advanced_Uninstall_Log_NSIS_Header
- install Python 2.7.14
- install MS Visual C++ for Python 2.7
pip install wheel numpy==1.9.2 pyserial cx_Freeze
- install SDL2 library
- install
sdl2_gfx
(seeBUILD.md
) -
msvcr71.dll
(for pyparallel installer, put next to the installer exe) - install PyParallel 0.2 from https://sourceforge.net/projects/pyserial/files/pyparallel/0.2/pyparallel-0.2.win32.exe
- note that
pip install pyparallel
is missinggiveio
andsimpleio
, doesn't work out of the box
- install homebrew
brew install python@2
pip install pcbasic
pip install wheel pyserial cx_Freeze
- for older versions we also need
pip install numpy==1.9.2
- compile SDL2,
sdl2_gfx
from source:- compile sdl2 with
./configure & make & sudo make install
. Note: needs to install to/usr/local/lib
for sdl2_gfx to compile - compile sdl2_gfx with
./configure & make & sudo make install
- it works now but library can't be moved, has to be in
/usr/local
. See: - fix sdl2_gfx install path to sdl to
@loader_path/libSDL2.dylib
(?) - change install name with
install_name_tool
to a@loader_path
name, check withotool
- compile sdl2 with
- copy dylibs into
lib/
(?)