On Wed, 12 Sep 2018 at 21:03, sashk <b...@sashk.xyz> wrote: > Package need to install several non-python files into specific path and we > are using data_files. Because wheel doesn't support absolute path[1], these > files are installed into wrong location under site-packages. I need some kind > of solution for wheel to properly install them, or come up with some kind of > a way to move them into proper path on a first run. > > > [1]: https://github.com/pypa/wheel/issues/92
Correct - as noted in the discussion on the issue you mentioned, there has been work on this, but nothing final yet. One key question is how you'd expect your package to work if installed in a virtualenv, or using `--user` by someone without root access, or with `--target`. (If your answer is "these possibilities aren't supported", then it's likely you're not building something that's suitable for installation via pip in the first place, i.e., it's more an "application" than a "library"). Your answers would probably be useful data points for the discussion on how wheel should support "absolute paths". Until then, having a manually run post-install script or on-first-run process is likely your best option (that step would presumably need to be run with root privileges). Paul -- Distutils-SIG mailing list -- distutils-sig@python.org To unsubscribe send an email to distutils-sig-le...@python.org https://mail.python.org/mm3/mailman3/lists/distutils-sig.python.org/ Message archived at https://mail.python.org/mm3/archives/list/distutils-sig@python.org/message/SFLZ4AUUXL5Z2WPK3XPPS3A67WY2KCYM/