Get the latest binary releases for Windows, macOS and Linux on the Releases page.
The following steps can be used to prepare a development environment for Friture on Ubuntu.
Prerequisite: a 64 bits Linux installation (PyQt5 wheels for Linux are only available for 64 bits).
This has been tested in a Virtualbox image for Ubuntu Trusty 16.04 LTS 64 bits from osboxes.org. The following custom settings have been set on the VM: increase video memory, enable 3d acceleration, enable audio input, install guest addition, add user to vboxsf (for file sharing with the host), keyboard layout setup.
- Install git
sudo apt-get update
sudo apt-get install -y git
- Install
portaudio
(used for audio IO in Friture)
sudo apt-get install -y libportaudio2
- Install python 3.11 and related build tools
sudo apt-get install -y python3.11-dev
- Clone the repository
git clone https://github.com/tlecomte/friture.git
cd friture
- Optional: switch to a specific branch
git fetch
git checkout origin/<branchName>
- Update
pip
,setuptools
andvirtualenv
sudo python3.11 -m pip install --upgrade pip
sudo pip3.11 install --upgrade setuptools
sudo pip3.11 install --upgrade virtualenv
- Create a virtualenv and activate it
virtualenv -p /usr/bin/python3.11 buildenv
source ./buildenv/bin/activate
- Install Friture dependencies (PyQt5, etc.)
pip3.11 install .[dev]
- Build Cython extensions
python3.11 setup.py build_ext --inplace
- Run Friture
python3.11 main.py
The following steps can be used to prepare a development environment for Friture on Windows.
-
Clone this repo
-
Install chocolatey from https://chocolatey.org/install
-
Install Python and Microsoft Visual Studio C++ Build Tools, required to build Friture. With chocolatey, in an administrator terminal:
choco install -y choco\packages.config
Watch out for a message indicating that a reboot is necessary.
The next commands do not need to be run in an administrator terminal.
- Make sure pip is up-to-date:
python -m pip install --upgrade pip
- Install virtualenv:
pip install -U virtualenv
- Build a virtualenv:
virtualenv buildenv
- Activate the virtualenv
.\buildenv\Scripts\activate
- Install dependencies
pip install .[dev]
- Build Cython extensions
python setup.py build_ext --inplace
- Run Friture
python main.py
See pyproject.toml
If friture.ui
or resource.qrc
are changed, the corresponding python files need to be rebuilt:
pyuic5 ui/friture.ui --from-imports > friture/ui_friture.py
pyuic5 ui/settings.ui --from-imports > friture/ui_settings.py
pyrcc5 resources/friture.qrc -o friture/friture_rc.py
The filters parameters are precomputed in a file called generated_filters.py
. To rebuild this file,
run the script named filter_design.py
.