retext-project / retext

ReText: Simple but powerful editor for Markdown and reStructuredText
GNU General Public License v2.0
1.88k stars 196 forks source link

Is Installation Via "pip install --user retext" Supposed to *Not* Install "me.mitya57.ReText.desktop"? #636

Closed tedliosu closed 9 months ago

tedliosu commented 9 months ago

This isn't a major issue, but per the title of this issue, I installed ReText via pip install --user retext per the instructions in this repository's main README.md, and a desktop entry file wasn't automatically installed to ~/.local/share/applications, unlike what this comment and this other comment is implying. Is this behavior supposed to be the case? As you may see in the screenshot below, I double-checked the project RECORD file just to make sure, and the desktop entry file isn't listed in that RECORD file either: retext_no_desktop_file_in_record

Fortunately all I had to do as a workaround was to simply download the desktop entry file directly from this repository and move it to ~/.local/share/applications, but I just want to make sure that it isn't expected for the end user to do this extra step when ReText is installed via the pip command mentioned in this issue.

mitya57 commented 9 months ago

Pip 23.1 and newer always installs the package by building a wheel and unpacking it inside site-packages directory. The old way of using setup.py install was removed (see pypa/pip#8368). So there is no way to install anything outside site-packages anymore, and ~/.local/share/applications is outside that directory.

To get the desktop file installed automatically, you can either use your distro's package manager, or bypass pip and call setup.py install manually.