Commit efb54f9
committed
fix: setup.py change again. Make data files relative.
Keep make_data_files_absolute(data_files, prefix), but make it a no-op
via parameter in case it needs to be reverted in the field.
When run under pip, the data files are re-parented to the prefix
directory even when they are absolute. So I get paths like:
/usr/local/venv/usr/local/venv/share/{roundup,man,docs,locale,...}/...
rather than:
/usr/local/venv/share/{roundup,man,docs,locale,...}/...
Roundup is finding them in either place, but /usr/local/venv/share is
easier for humans who need to be able to find man pages, html docs,
example code, frontend integration code (wsgi, cgi, zope) to modify.
Running 'roundup-admin templates' can give the user a hint where the
share directory is.
I feel like I keep going around and around on this. I have decided to
make pip install in a venv the standard path for installation. So make
the code work for that path and if it breaks all the other ways to
install, well that's the realm of Python packaging.
The internal code that searches a bunch of places to try to find its
files is not changed.1 parent 5e3c619 commit efb54f9
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| |||
0 commit comments