Created
November 22, 2023 16:35
-
-
Save jsbueno/adf436e5e4c7008e8a4a124334d7b592 to your computer and use it in GitHub Desktop.
Shell command sequence to compile and install mypaint from GIT, as of november 2023, with Python 3.11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this is not a script - more like a curated command sequence from my history | |
# after succesfully installing mypaint. | |
export $PREFIX=/home/<user>/mypaint-git | |
sudo dnf install swig # fedora/redhat specific. One also will need Python3-dev and other Linux packages | |
git clone https://github.com/mypaint/mypaint.git | |
cd mypaint | |
~/.pyenv/versions/3.11.4/bin/python -m venv env311 # or use other cPython interpreter of preference | |
cd .. | |
git clone https://github.com/mypaint/libmypaint | |
cd libmypaint/ | |
./autogen.sh --prefix=$PREFIX | |
./configure --prefix=$PREFIX | |
make | |
make install | |
sudo ldconfig $PREFIX/lib | |
cd .. | |
git clone https://github.com/mypaint/mypaint-brushes | |
cd mypaint-brushes/ | |
./autogen.sh --prefix=$PREFIX | |
./configure --prefix=$PREFIX | |
make # may do nothing | |
make install # this, yes, will copy the assets over | |
cd ../mypaint | |
pip install numpy | |
pip install PyGObject | |
export PKG_CONFIG_PATH=$PREFIX/share/pkgconfig/:$PREFIX/lib/pkgconfig:$PKG_CONFIG_PATH | |
export LD_LIBRARY_PATH=$PREFIX/lib | |
export GI_TYPELIB_PATH=$PREFIX/lib/girepository-1.0/ | |
python setup.py build | |
python setup.py managed_install --prefix=$PREFIX |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment