[New-bugs-announce] [issue12393] Packaging should provide support for extensible categories
report at bugs.python.org
Fri Jun 24 10:53:25 CEST 2011
New submission from Vinay Sajip <vinay_sajip at yahoo.co.uk>:
Some installation locations are platform-dependent and cannot be categorised into a small but fixed number of categories. This is particularly true for the Windows ecosystem - PowerShell, Office, SharePoint all have specific locations where files need to be installed for interoperability with them.
This can be catered for by a pre-hook for install_data, but some very small core changes are needed:
1. In the install_data constructor, initialise self.categories to an empty dictionary.
2. In install_data.expand_categories, add a "local_vars.update(self.categories)" after the "local_vars = get_paths()" statement.
Just these small changes are sufficient to allow sufficient control over custom installation locations. For projects that need custom categories, they just need to do the necessary setup in an install_data pre-hook:
cmd.categories['customcategory'] = '/path/for/my/custom/category'
I have this working in the pythonv branch, and if the feature request is accepted I can work up a patch including changes to docs, tests etc.
components: Distutils2, Library (Lib)
nosy: alexis, eric.araujo, tarek, vinay.sajip
title: Packaging should provide support for extensible categories
type: feature request
versions: Python 3.3
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce