This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: function to get completion install location for setup.py?
Type: enhancement Stage: resolved
Components: Installation Versions: Python 3.6, Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 2.7
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: vstinner, wkentaro
Priority: normal Keywords:

Created on 2015-07-30 07:27 by wkentaro, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
get_completion_install_location.py wkentaro, 2015-07-30 07:27 function to get completion install location for assigned shell
Messages (3)
msg247654 - (view) Author: Kentaro Wada (wkentaro) * Date: 2015-07-30 07:27
I'm distributing command line tools by pypi, and the package also installs shell completion file.
The default shell completion install location is sometimes platform specific, so the code cannot be so simple. 
I think it is good to have a function which can be used easily when distributing this kind of package. I think the function is similar with ``distutils.sysconfig.get_python_lib()``.

Please see attached file. It contains a function I'm thinking to add now.
msg247656 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2015-07-30 07:47
> I think it is good to have a function which can be used easily when distributing this kind of package.

I don't think that we should put this stuff into distutils, it's too specific for UNIX, and your patch only supports a few shells.

It's better to put that into a project which is updated more frequently on PyPI.

Stdlib is more for "frozen" stuff, we only update the stdlib every ~18 months! (each Python major release)
msg247657 - (view) Author: Kentaro Wada (wkentaro) * Date: 2015-07-30 07:55
Yeah, that's right. I don't think to send patch to distutils but send to that kind of package as you said.
I'm looking for that kind of packages to send patch but not found yet.

Do you have any idea?
History
Date User Action Args
2022-04-11 14:58:19adminsetgithub: 68941
2015-07-30 12:26:43r.david.murraysetstatus: open -> closed
resolution: rejected
stage: resolved
2015-07-30 07:55:53wkentarosetmessages: + msg247657
2015-07-30 07:47:44vstinnersetnosy: + vstinner
messages: + msg247656
2015-07-30 07:27:23wkentarocreate