Commit e2a18252 authored by Fred Drake's avatar Fred Drake

make the initgroups extension a package; zpkg is still happier working with

packages than single pieces
parent f024924f
##############################################################################
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
from _initgroups import initgroups
...@@ -54,8 +54,8 @@ static PyMethodDef InitgroupsMethods[] = { ...@@ -54,8 +54,8 @@ static PyMethodDef InitgroupsMethods[] = {
#endif /* defined(__unix__) || defined(unix) */ #endif /* defined(__unix__) || defined(unix) */
void void
initinitgroups(void) init_initgroups(void)
{ {
Py_InitModule("initgroups", InitgroupsMethods); Py_InitModule("_initgroups", InitgroupsMethods);
} }
#!/usr/bin/env python2.3 #!/usr/bin/env python2.3
############################################################################## ##############################################################################
...@@ -347,8 +346,8 @@ ext_modules = [ ...@@ -347,8 +346,8 @@ ext_modules = [
depends=["ExtensionClass/ExtensionClass.h"]), depends=["ExtensionClass/ExtensionClass.h"]),
# initgroups # initgroups
Extension(name='initgroups', Extension(name='initgroups._initgroups',
sources=['../Components/initgroups/initgroups.c']), sources=['initgroups/_initgroups.c']),
# indexes # indexes
Extension(name='Products.PluginIndexes.TextIndex.Splitter.ZopeSplitter.ZopeSplitter', Extension(name='Products.PluginIndexes.TextIndex.Splitter.ZopeSplitter.ZopeSplitter',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment