Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #8517

entry-point script and private module install directory

From Ghislain Vaillant <ghisvail@gmail.com>
Newsgroups linux.debian.maint.python, linux.debian.devel.mentors
Subject entry-point script and private module install directory
Date 2016-05-11 18:10 +0200
Message-ID <rxEIi-2LV-13@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


Dear all,

I have a package (pyfr), which is meant to be used as a command-line
application only.

The main script (pyfr) is installed via setuptools'
entry_points['console_scripts'], which generates the entry-point
automatically and places it under /usr/bin. However, when I install the
implementation module in a private location, such as /usr/share/pyfr,
the entry-point cannot find the module and load the application.

Right now, the module is installed in the dist-packages location,
although it is not intended to be public. It was just the easiest
solution to start with at the time.

What is the standard way to circumvent this? Do other packages use 
custom wrapper scripts, or is there a more clever way to tell the
entry-point to look for a custom package location? Is there a good
example you guys can point me to?

There was a similar discussion for the grip [1] package on this list,
but it did not lead to something I can use, or so I believe.

[1] https://lists.debian.org/debian-python/2016/04/msg00001.html

Many thanks,
Ghis

Back to linux.debian.maint.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

entry-point script and private module install directory Ghislain Vaillant <ghisvail@gmail.com> - 2016-05-11 18:10 +0200
  Re: entry-point script and private module install directory Piotr Ożarowski <piotr@debian.org> - 2016-05-11 20:00 +0200
    Re: entry-point script and private module install directory Piotr Ożarowski <piotr@debian.org> - 2016-05-11 20:20 +0200
    Re: entry-point script and private module install directory Ghislain Vaillant <ghisvail@gmail.com> - 2016-05-12 10:30 +0200
      Bug in pybuild's handling of --install-lib? [Was: Re: entry-point  script and private module install directory] Ghislain Vaillant <ghisvail@gmail.com> - 2016-05-12 13:30 +0200
        Re: Bug in pybuild's handling of --install-lib? [Was: Re:  entry-point script and private module install directory] Piotr Ożarowski <piotr@debian.org> - 2016-05-12 14:20 +0200
          Re: Bug in pybuild's handling of --install-lib? [Was: Re: entry-point  script and private module install directory] Ghislain Vaillant <ghisvail@gmail.com> - 2016-05-12 15:00 +0200

csiph-web