openSUSE/cepces

setup.py install not respecting prefix

drlamb opened this issue · 3 comments

Following this change setup.py install results in bin/cepces-submit being copied to build/bdist.linux-x86_64/egg/libexec/certmonger rather than the intended /usr/local/libexec/certmonger regardless of what prefix I specify. What am I doing wrong?

Modifying the data_files variable path within setup.py to include "/usr/local" works as it did before of course but I'd like to know the intended use of user-definable prefixes.

I've attempted:

  • python3 setup.py install --prefix=/usr/local
  • setup.cfg defining the prefix

Test system(s):
Ubuntu 20.04.5 LTS

@cryptomilk could you address this, since you made the breaking change?

Then I would suggest to completely remove the data_files. Normally this is meant to install stuff into /usr/share not for config files or libexec.

Note, by the way, that this encapsulation of data files means that you can't actually install data files to some arbitrary location on a user's machine; this is a feature, not a bug. You can always include a script in your distribution that extracts and copies your the documentation or data files to a user-specified location, at their discretion.

h3po commented

Now the cepces-submit script is not installed at all when --prefix is not given