Project

General

Profile

Actions

Bug #7696

open

Scripts in bin folder are not located in any directory specified in $PATH after installation

Added by Rajmund Hruška 7 months ago. Updated 3 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Installation
Target version:
Start date:
11/27/2023
Due date:
% Done:

0%

Estimated time:
To be discussed:
No

Description

Using setuptools (keyword scripts), the scripts available in bin folder should be executable from the command line [1]. This worked in the past, but nowadays, the new scripts are not located in /usr/local/bin as before. More specifically, the new links are not created.

Based on the date, this might be related to #7041.

[1] https://python-packaging.readthedocs.io/en/latest/command-line-scripts.html#the-scripts-keyword-argument

Actions #1

Updated by Rajmund Hruška 7 months ago

The change indeed happened in #7041 - d54d6881.

The original code in packaging/debian/postinst:

mentat_bin_list=(
    hawat-cli
    mentat-backup.py
    mentat-cleanup.py
    mentat-controller.py
    mentat-dbmngr.py
    mentat-enricher.py
    mentat-hawat.py
    mentat-hawat.wsgi
    mentat-ideagen.py
    mentat-informant.py
    mentat-inspector.py
    mentat-netmngr.py
    mentat-precache.py
    mentat-reporter.py
    mentat-sampler.py
    mentat-statistician.py
    mentat-storage.py
)

for b in "${mentat_bin_list[@]}" 
do
    if [ -f "/usr/local/bin/${b}" ]; then
        rm -f "/usr/local/bin/${b}" 
    fi
    if [ ! -L "/usr/local/bin/${b}" ]; then
        ln -s "${MENTAT_VENV}/bin/${b}" "/usr/local/bin/${b}" 
    fi
done

Actions #2

Updated by Pavel Kácha 3 months ago

  • Target version changed from 2.12 to 2.13
Actions

Also available in: Atom PDF