Ignore:
Timestamp:
Feb 5, 2010, 11:20:58 AM (15 years ago)
Author:
broder
Message:

Select an authz module using setuptools' entry points mechainsm.

Instead of having each authz package install an invirt.authz module,
have them install modules under their own namespace.

In their setup.py, they should indicate that their authz module
provides a unique name within the invirt.authz entry point group.

The new invirt.authz module (part of invirt-base) then gets a name
from the configuration and uses that to find the module.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/xvm-authz-locker/setup.py

    r2766 r2989  
    2424    maintainer_email=maintainer_email,
    2525   
    26     py_modules = ['invirt.authz'],
     26    py_modules = ['xvm.authz.locker'],
    2727    package_dir = {'': 'python'},
     28
     29    entry_points = {
     30        'invirt.authz': [
     31            'xvm-locker = xvm.authz.locker',
     32            ],
     33        },
    2834)
Note: See TracChangeset for help on using the changeset viewer.