Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/nicotine-plus/nicotine-plus/llms.txt

Use this file to discover all available pages before exploring further.

This guide covers setting up a development environment for Nicotine+ on various platforms.

Dependencies

Runtime Dependencies

All runtime dependencies must be installed before running Nicotine+ from source.

Required

  • python3 >= 3.9 - Runtime language
  • gtk4 >= 4.6.9 or gtk3 >= 3.24.24 - Graphical interface
  • pygobject - Python bindings for GTK
  • libadwaita - Adwaita theme on GNOME (GTK 4)
  • gspell - Spell checking in chat (GTK 3)

Build Dependencies

  • python3-setuptools - Build backend
  • python3-build - Building packages
  • python3-wheel - Packaging
  • gettext - Generating translations

Testing Dependencies

  • pycodestyle - Code style checks
  • pylint - Code linting

Installing Dependencies

GNU/Linux

1

Install runtime dependencies

sudo apt install gir1.2-gspell-1 gir1.2-gtk-4.0 gir1.2-adw-1 python3-gi python3-gi-cairo
2

Install build dependencies

sudo apt install gettext python3-build python3-setuptools python3-wheel
3

Install test dependencies

sudo apt install pylint3 python3-pycodestyle

Windows and macOS

All required dependencies are included in the official Windows and macOS installers. For building packages in a development environment, see the PACKAGING.md documentation.

Development Installation

Run Nicotine+ directly from a local Git folder without installation:
1

Clone the repository

git clone https://github.com/nicotine-plus/nicotine-plus.git
cd nicotine-plus
2

Run Nicotine+

./nicotine
3

Update to latest changes

git pull
This method is ideal for development as you can easily modify code and test changes immediately.

Option 2: pip Installation

Install the latest unstable build using pip:
1

Install from Git

pip3 install git+https://github.com/nicotine-plus/nicotine-plus.git
2

Run Nicotine+

nicotine
3

Update to latest

pip3 install --upgrade git+https://github.com/nicotine-plus/nicotine-plus.git
4

Uninstall (if needed)

pip3 uninstall nicotine-plus

Building from Source

Create a Source Distribution

1

Navigate to source directory

cd nicotine-plus
2

Build source distribution

python3 -m build --sdist
3

Verify output

The source distribution will be created in the dist/ directory.

Test the Build

To test building the application:
python3 -m build
Ensure the source distribution (sdist) includes all necessary files to run Nicotine+ before creating a release.

Testing Unstable Builds

For testing the latest unstable builds on various platforms:

GNU/Linux

Ubuntu and derivatives:
sudo add-apt-repository ppa:nicotine-team/unstable
sudo apt update && sudo apt install nicotine
Debian and derivatives:
sudo apt update && sudo apt install python3-launchpadlib software-properties-common
sudo add-apt-repository 'deb https://ppa.launchpadcontent.net/nicotine-team/unstable/ubuntu jammy main'
sudo apt update && sudo apt install nicotine

Windows

Unstable installers are built after every commit: Portable packages are also available that run from any folder without installation.

macOS

Unstable installers are built after every commit:
You must follow Apple’s instructions the first time you start Nicotine+ from an unstable build.

Next Steps

Now that your development environment is set up: