[issue12393] Packaging should provide support for extensible categories
Vinay Sajip
report at bugs.python.org
Fri Jun 24 13:09:16 CEST 2011
Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:
@Éric: I agree that some support in setup.cfg would be good, but the problem is that you can't be 100% declarative - sometime the locations can only be determined at runtime.
I assume you are thinking of something like:
[install_data]
categories =
cat1 = path1
cat2 = path2
In my specific use case, declarative paths will not work in all scenarios - you have to use ctypes to call a Windows API (SHGetKnownFolderPath) to find the specific place to put things.
The two approaches can work together - the categories dictionary can be populated from setup.cfg where this makes sense, and of course for static paths it makes perfect sense. The Windows world is a lot more chaotic than static paths can cater for, unfortunately :-(
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12393>
_______________________________________
More information about the Python-bugs-list
mailing list