Development Environment - alejandroautalan/pygubu-designer GitHub Wiki
Requirements
On Windows you need to install git and gitbash console.
On Unix like systems you need: git, bash and gettext.
# On debian based distributions
apt install bash git gettext
Preparation
Open a bash console. On Windows, right click on Desktop (or the folder you want), Click "open GitBash here".
# This is the python version installed here
$ python --version
Python 3.8.5
Create a project folder
mkdir mypygubu-project
cd mypygubu-project
Create a virtual environment called venv
python -m venv venv
Activate virtual environment
# Windows:
source ./venv/Scripts/activate
# Unix like:
source venv/bin/activate
Clone pygubu-designer repository (Or your own fork of pygubu-designer repo)
git clone https://github.com/alejandroautalan/pygubu-designer.git
Change to pygubu-designer folder, and install it in developer mode
cd pygubu-designer
pip install -e ./
Generate PO files for developer mode
./pygubudesigner.sh msgf
Run designer
python -m pygubudesigner
At the end, your project structure should look as follows:
mypygubu-project/
├── pygubu-designer
│ ├── examples
│ ├── pygubudesigner
│ ├── pygubu_designer.egg-info
│ └── requirements
└── venv
Start coding.