-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Install data files from the Makefile #32
base: master
Are you sure you want to change the base?
Conversation
This commit reverts 74e8aa8 and part of f2491ba. Signed-off-by: Antoine Damhet <[email protected]>
The reason behind the current install is to provide a fully featured local install using As the extension entry point is in |
I've scratched my head multiple times on this kind of problem, I don't think there is a good way to do it (I may have missed it tho). IMHO: the less-worse solution is something like this PR, eg a full separation of the python module from the system files. It has the added benefit to allow the user to swap the python module without the sytem files. The second less-worse solution is to bundle the data files into the python module and provide
|
i do not share @xdbob's interpretation in #31 where it is basically argued the only way to ship data files is with a Makefile, quoting this part of the setuptools guide. The actual article, however, basically says that, to ship "data files", you must ship them inside your package which, in the case of the Debian package for this, is in This is discussed at length in pypa/packaging-problems#72 as well. It looks like the latest entry there is a reference to the It's similar to what you're doing now, but with hatchling, under the I am actually surprised this doesn't work in wheels. I maintain the feed2exec package as an upstream, and it ships bash completions through @xdbob are you saying that if you |
I didn't argued it's the only way but the less worse :)
That is precisely my point, pass-audit must install files outside of the python
I think it's hatch specific, it may be worth to look deeper into it tho.
Indeed it works :) You appear to use If needed I am willing to try if |
Thanks @anarcat and @xdbob for the help. It is actually a bigger issue than shipping completion file. Part of the "data files" is the extension entry point
Doing it in the Makefile would break all install using pypi. Having an init script that do something like |
This commit reverts 74e8aa8 and part of f2491ba.
Fixes #31