mapeditor / mapeditor/tiled

Make the Python plugin work in the Ubuntu snap

Open
#2,142 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted
Dominant language
C++
Stars
12.9k
Forks
2k
Avg merge
4h 27m
Merged PRs (30d)
8

Description

I have made some attempts at shipping the Python plugin in the snap, but the simply approach of building against Python and then relying on the system Python at runtime doesn't work (like it does for the AppImage):

https://github.com/bjorn/tiled/blob/9df61be40c061289cb842f5709adbf6b9ec1e8a2/snap/snapcraft.yaml#L42-L44

Probably we need to ship a complete Python runtime environment rather than trying to rely on a system-installed Python on the user's side.

Shipping a Python runtime would also fix compatibility issues we're currently having if the system Python version is different from the one Tiled was compiled against (those issues also affect the AppImage and the Windows installer package).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with snap/snapcraft.yaml at the referenced Python build configuration, then compare how the Python plugin is packaged for the AppImage and Windows installer. Determine how a complete Python runtime can be shipped in the Ubuntu snap, and verify that the plugin works without relying on the user's system Python version.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system, release
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.