-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP issue #84 #104
WIP issue #84 #104
Conversation
Pull Request Test Coverage Report for Build 817
💛 - Coveralls |
I'm not sure I understand what the problem is with them going into /usr/apertium_apy? No matter where they go, if someone uses the new apertium-apy console script, they'll have to give it the full path and putting it in dist_packages means the path is now dependent on your Python version which sounds awful. We can give it an absolute path so it installs to /usr/share/apertium_apy, that's easy. |
A package is absolutely not allowed to create folders directly under I thought langNames.db was automatically searched for in the script paths? If not, that should be done. Also, README.md and COPYING will be included as part of the packaging itself - they don't even need to be installed by the source. A whole folder for a single file feels excessive, and it's against the setuptools ethos to install anything outside the Python folder (asides from bin). |
It's not. A new issue for that makes sense.
Yeah, let's do this. I prefer it instead of a bunch of hacks. Working on it. |
Sigh: pypa/wheel#92 ... makes absolute paths a mess. |
Hmm, it never installs directly to
|
I'm not entirely opposed to the solution in this PR but I don't want to regress to not including |
Since people seem to use |
Superseded by #106 |
Install step install_data puts the extra files into /usr/apertium_apy instead of /usr/lib/python3.6/dist-packages/apertium_apy or /usr/share/apertium-apy
It's a known bug pypa/setuptools#130 , and it's even marked wontfix with this comment pypa/setuptools#130 (comment) :
As per https://setuptools.readthedocs.io/en/latest/setuptools.html#including-data-files if one uses
then those files are included, but they must first exist in the apertium_apy folder (which the make step can make sure they do).
How to include tools/ is left as an exercise to the reader - meaning, I don't see why they make sense in the Python folder, and I don't want to fight this absurdity of a tool.