Project

General

Profile

Actions

Bug #7696

closed

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

Added by Rajmund Hruška 12 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
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 12 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 8 months ago

  • Target version changed from 2.12 to 2.13
Actions #3

Updated by Rajmund Hruška 5 months ago

  • Target version changed from 2.13 to Backlog
Actions #4

Updated by Rajmund Hruška 5 months ago

  • Status changed from New to Resolved
  • Assignee set to Rajmund Hruška
  • Target version changed from Backlog to 2.13.1
Actions #5

Updated by Rajmund Hruška 5 months ago

  • Status changed from Resolved to In Review
Actions #6

Updated by Rajmund Hruška 4 months ago

  • Status changed from In Review to Closed
Actions

Also available in: Atom PDF