Commit c20fabdb authored by Fred Drake's avatar Fred Drake

Lots of minor changes to remove cosmetic differences between this file

and the version being used in the new-install-branch.
parent 8b653804
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE # FOR A PARTICULAR PURPOSE.
# #
############################################################################## ##############################################################################
...@@ -40,11 +40,13 @@ Distutils setup for Zope ...@@ -40,11 +40,13 @@ Distutils setup for Zope
for Zope to work in this configuration. for Zope to work in this configuration.
""" """
import glob
import os import os
import sys import sys
from distutils.core import setup as distutils_setup import distutils.core
from distutils.extension import Extension
from distutils.core import Extension
# This function collects setup information for one massive distutils # This function collects setup information for one massive distutils
# run to be done at the end of the script. If you're making a setup.py # run to be done at the end of the script. If you're making a setup.py
...@@ -54,7 +56,6 @@ from distutils.extension import Extension ...@@ -54,7 +56,6 @@ from distutils.extension import Extension
setup_info = {} setup_info = {}
def setup(name=None, author=None, cmdclass=None, **kwargs): def setup(name=None, author=None, cmdclass=None, **kwargs):
setup_info = sys.modules[__name__].setup_info
for keyword in kwargs.keys(): for keyword in kwargs.keys():
if not setup_info.has_key(keyword): if not setup_info.has_key(keyword):
setup_info[keyword] = [] setup_info[keyword] = []
...@@ -63,12 +64,9 @@ def setup(name=None, author=None, cmdclass=None, **kwargs): ...@@ -63,12 +64,9 @@ def setup(name=None, author=None, cmdclass=None, **kwargs):
# Override install_data to install into module directories, and to support # Override install_data to install into module directories, and to support
# globbing on data_files. # globbing on data_files.
from types import StringType
from distutils.command.install import install from distutils.command.install import install
from distutils.command.install_data import install_data from distutils.command.install_data import install_data
from distutils.errors import DistutilsFileError, DistutilsOptionError
from distutils.util import convert_path from distutils.util import convert_path
from glob import glob
class install_data(install_data): class install_data(install_data):
def finalize_options(self): def finalize_options(self):
...@@ -81,13 +79,13 @@ class install_data(install_data): ...@@ -81,13 +79,13 @@ class install_data(install_data):
def run(self): def run(self):
self.mkpath(self.install_dir) self.mkpath(self.install_dir)
for f in self.data_files: for f in self.data_files:
if type(f) == StringType: if isinstance(f, str):
# it's a simple file, so copy it # it's a simple file, so copy it
f = convert_path(f) f = convert_path(f)
gl = glob(f) gl = glob.glob(f)
if len(gl) == 0: if len(gl) == 0:
raise DistutilsFileError, \ raise distutils.core.DistutilsFileError, \
"can't copy '%s': glob failed" % f "can't copy '%s': no matching files" % f
for g in gl: for g in gl:
if os.path.isfile(g): if os.path.isfile(g):
if self.warn_dir: if self.warn_dir:
...@@ -107,10 +105,10 @@ class install_data(install_data): ...@@ -107,10 +105,10 @@ class install_data(install_data):
self.mkpath(dir) self.mkpath(dir)
for data in f[1]: for data in f[1]:
data = convert_path(data) data = convert_path(data)
gl = glob(data) gl = glob.glob(data)
if len(gl) == 0: if len(gl) == 0:
raise DistutilsFileError, \ raise distutils.core.DistutilsFileError, \
"can't copy '%s': glob failed" % data "can't copy '%s': no matching files" % data
for g in gl: for g in gl:
if os.path.isfile(g): if os.path.isfile(g):
(out, _) = self.copy_file(g, dir) (out, _) = self.copy_file(g, dir)
...@@ -125,7 +123,7 @@ class install(install): ...@@ -125,7 +123,7 @@ class install(install):
self.install_headers is None or self.install_headers is None or
self.install_scripts is None or self.install_scripts is None or
self.install_data is None): self.install_data is None):
raise DistutilsOptionError, \ raise distutils.core.DistutilsOptionError, \
"install-base or install-platbase supplied, but " + \ "install-base or install-platbase supplied, but " + \
"installation scheme is incomplete" "installation scheme is incomplete"
return return
...@@ -136,9 +134,10 @@ class install(install): ...@@ -136,9 +134,10 @@ class install(install):
else: else:
if self.prefix is None: if self.prefix is None:
if self.exec_prefix is not None: if self.exec_prefix is not None:
raise DistutilsOptionError, \ raise distutils.core.DistutilsOptionError, \
"must not supply exec-prefix without prefix" "must not supply exec-prefix without prefix"
raise DistutilsOptionError, "must supply installation path" raise distutils.core.DistutilsOptionError, \
"must supply installation path"
else: else:
if self.exec_prefix is None: if self.exec_prefix is None:
self.exec_prefix = self.prefix self.exec_prefix = self.prefix
...@@ -157,6 +156,7 @@ EXTENSIONCLASS_INCLUDEDIRS = [EXTENSIONCLASS_SRCDIR] ...@@ -157,6 +156,7 @@ EXTENSIONCLASS_INCLUDEDIRS = [EXTENSIONCLASS_SRCDIR]
# Most modules are in lib/python in the source distribution # Most modules are in lib/python in the source distribution
os.chdir(PACKAGES_ROOT) os.chdir(PACKAGES_ROOT)
# AccessControl # AccessControl
setup( setup(
name='AccessControl', name='AccessControl',
...@@ -169,19 +169,16 @@ setup( ...@@ -169,19 +169,16 @@ setup(
'AccessControl.tests.private_module.submodule', 'AccessControl.tests.private_module.submodule',
'AccessControl.tests.public_module', 'AccessControl.tests.public_module',
'AccessControl.tests.public_module.submodule'], 'AccessControl.tests.public_module.submodule'],
data_files=[['AccessControl', ['AccessControl/*.txt']], data_files=[['AccessControl', ['AccessControl/*.txt']],
['AccessControl/dtml', ['AccessControl/dtml/*']], ['AccessControl/dtml', ['AccessControl/dtml/*']],
['AccessControl/securitySuite', ['AccessControl/securitySuite',
['AccessControl/securitySuite/README']], ['AccessControl/securitySuite/README']],
['AccessControl/www', ['AccessControl/www/*']]], ['AccessControl/www', ['AccessControl/www/*']]],
cmdclass={'install_data': install_data},
ext_modules=[ ext_modules=[
Extension(name='AccessControl.cAccessControl', Extension(name='AccessControl.cAccessControl',
include_dirs=EXTENSIONCLASS_INCLUDEDIRS, include_dirs=EXTENSIONCLASS_INCLUDEDIRS,
sources=['AccessControl/cAccessControl.c'])] sources=['AccessControl/cAccessControl.c'])]
) )
# App # App
setup( setup(
...@@ -189,11 +186,9 @@ setup( ...@@ -189,11 +186,9 @@ setup(
author=AUTHOR, author=AUTHOR,
packages=['App'], packages=['App'],
data_files=[['App/dtml', ['App/dtml/*']], data_files=[['App/dtml', ['App/dtml/*']],
['App/www', ['App/www/*']]], ['App/www', ['App/www/*']]],
cmdclass={'install_data': install_data} )
)
# BTrees # BTrees
setup( setup(
...@@ -201,7 +196,6 @@ setup( ...@@ -201,7 +196,6 @@ setup(
author=AUTHOR, author=AUTHOR,
packages=['BTrees', 'BTrees.tests'], packages=['BTrees', 'BTrees.tests'],
ext_modules=[ ext_modules=[
Extension(name='BTrees._OOBTree', Extension(name='BTrees._OOBTree',
include_dirs=EXTENSIONCLASS_INCLUDEDIRS + ['ZODB'], include_dirs=EXTENSIONCLASS_INCLUDEDIRS + ['ZODB'],
...@@ -221,10 +215,8 @@ setup( ...@@ -221,10 +215,8 @@ setup(
include_dirs=EXTENSIONCLASS_INCLUDEDIRS + ['ZODB'], include_dirs=EXTENSIONCLASS_INCLUDEDIRS + ['ZODB'],
define_macros=[('EXCLUDE_INTSET_SUPPORT', None)], define_macros=[('EXCLUDE_INTSET_SUPPORT', None)],
sources=['BTrees/_fsBTree.c'])], sources=['BTrees/_fsBTree.c'])],
data_files=[['BTrees', ['BTrees/Maintainer.txt']]], data_files=[['BTrees', ['BTrees/Maintainer.txt']]],
cmdclass={'install_data': install_data} )
)
# BTrees compatibility package # BTrees compatibility package
setup( setup(
...@@ -248,7 +240,7 @@ setup( ...@@ -248,7 +240,7 @@ setup(
Extension(name='intSet', Extension(name='intSet',
include_dirs=EXTENSIONCLASS_INCLUDEDIRS + ['ZODB'], include_dirs=EXTENSIONCLASS_INCLUDEDIRS + ['ZODB'],
sources=['../Components/BTree/intSet.c'])] sources=['../Components/BTree/intSet.c'])]
) )
# DateTime # DateTime
setup( setup(
...@@ -256,11 +248,9 @@ setup( ...@@ -256,11 +248,9 @@ setup(
author=AUTHOR, author=AUTHOR,
packages=['DateTime', 'DateTime.tests'], packages=['DateTime', 'DateTime.tests'],
data_files=[['DateTime', ['DateTime/DateTime.html']], data_files=[['DateTime', ['DateTime/DateTime.html']],
['DateTime/tests', ['DateTime/tests/julian_testdata.txt.gz']]], ['DateTime/tests', ['DateTime/tests/julian_testdata.txt.gz']]],
cmdclass={'install_data': install_data} )
)
# DocumentTemplate # DocumentTemplate
setup( setup(
...@@ -269,17 +259,14 @@ setup( ...@@ -269,17 +259,14 @@ setup(
packages=['DocumentTemplate', 'DocumentTemplate.sequence', packages=['DocumentTemplate', 'DocumentTemplate.sequence',
'DocumentTemplate.sequence.tests', 'DocumentTemplate.tests'], 'DocumentTemplate.sequence.tests', 'DocumentTemplate.tests'],
data_files=[['DocumentTemplate', ['DocumentTemplate/Let.stx']], data_files=[['DocumentTemplate', ['DocumentTemplate/Let.stx']],
['DocumentTemplate/tests', ['DocumentTemplate/tests',
['DocumentTemplate/tests/dealers.*']]], ['DocumentTemplate/tests/dealers.*']]],
cmdclass={'install_data': install_data},
ext_modules=[ ext_modules=[
Extension(name='DocumentTemplate.cDocumentTemplate', Extension(name='DocumentTemplate.cDocumentTemplate',
include_dirs=EXTENSIONCLASS_INCLUDEDIRS, include_dirs=EXTENSIONCLASS_INCLUDEDIRS,
sources=['DocumentTemplate/cDocumentTemplate.c'])] sources=['DocumentTemplate/cDocumentTemplate.c'])]
) )
# ExtensionClass # ExtensionClass
setup( setup(
...@@ -311,7 +298,7 @@ setup( ...@@ -311,7 +298,7 @@ setup(
Extension(name='ComputedAttribute', Extension(name='ComputedAttribute',
include_dirs=EXTENSIONCLASS_INCLUDEDIRS, include_dirs=EXTENSIONCLASS_INCLUDEDIRS,
sources=['../Components/ExtensionClass/src/ComputedAttribute.c'])] sources=['../Components/ExtensionClass/src/ComputedAttribute.c'])]
) )
# HelpSys # HelpSys
setup( setup(
...@@ -319,11 +306,9 @@ setup( ...@@ -319,11 +306,9 @@ setup(
author=AUTHOR, author=AUTHOR,
packages=['HelpSys'], packages=['HelpSys'],
data_files=[['HelpSys/dtml', ['HelpSys/dtml/*']], data_files=[['HelpSys/dtml', ['HelpSys/dtml/*']],
['HelpSys/images', ['HelpSys/images/*']]], ['HelpSys/images', ['HelpSys/images/*']]],
cmdclass={'install_data': install_data} )
)
# Interface # Interface
setup( setup(
...@@ -332,9 +317,7 @@ setup( ...@@ -332,9 +317,7 @@ setup(
packages=['Interface', 'Interface.tests', packages=['Interface', 'Interface.tests',
'Interface.Common', 'Interface.Common.tests'], 'Interface.Common', 'Interface.Common.tests'],
)
cmdclass={'install_data': install_data}
)
# logging # logging
setup( setup(
...@@ -349,12 +332,10 @@ setup( ...@@ -349,12 +332,10 @@ setup(
author=AUTHOR, author=AUTHOR,
packages=['OFS', 'OFS.tests'], packages=['OFS', 'OFS.tests'],
data_files=[['OFS/dtml', ['OFS/dtml/*']], data_files=[['OFS/dtml', ['OFS/dtml/*']],
['OFS/standard', ['OFS/standard/*']], ['OFS/standard', ['OFS/standard/*']],
['OFS/www', ['OFS/www/*']]], ['OFS/www', ['OFS/www/*']]],
cmdclass={'install_data': install_data} )
)
# RestrictedPython # RestrictedPython
setup( setup(
...@@ -363,11 +344,9 @@ setup( ...@@ -363,11 +344,9 @@ setup(
packages=['RestrictedPython', 'RestrictedPython.compiler_2_1', packages=['RestrictedPython', 'RestrictedPython.compiler_2_1',
'RestrictedPython.tests'], 'RestrictedPython.tests'],
data_files=[['RestrictedPython/compiler_2_1', data_files=[['RestrictedPython/compiler_2_1',
['RestrictedPython/compiler_2_1/ast.txt']]], ['RestrictedPython/compiler_2_1/ast.txt']]],
cmdclass={'install_data': install_data} )
)
# SearchIndex # SearchIndex
setup( setup(
...@@ -375,14 +354,11 @@ setup( ...@@ -375,14 +354,11 @@ setup(
author=AUTHOR, author=AUTHOR,
packages=['SearchIndex', 'SearchIndex.tests'], packages=['SearchIndex', 'SearchIndex.tests'],
data_files=[['SearchIndex', ['SearchIndex/*.txt']]], data_files=[['SearchIndex', ['SearchIndex/*.txt']]],
cmdclass={'install_data': install_data},
ext_modules=[ ext_modules=[
Extension(name='SearchIndex.Splitter', Extension(name='SearchIndex.Splitter',
sources=['SearchIndex/Splitter.c'])] sources=['SearchIndex/Splitter.c'])]
) )
# Shared.DC bases # Shared.DC bases
setup( setup(
...@@ -390,7 +366,7 @@ setup( ...@@ -390,7 +366,7 @@ setup(
author=AUTHOR, author=AUTHOR,
packages=['Shared', 'Shared.DC'] packages=['Shared', 'Shared.DC']
) )
# Scripts # Scripts
setup( setup(
...@@ -398,10 +374,8 @@ setup( ...@@ -398,10 +374,8 @@ setup(
author=AUTHOR, author=AUTHOR,
packages=['Shared.DC.Scripts'], packages=['Shared.DC.Scripts'],
data_files=[['Shared/DC/Scripts/dtml', ['Shared/DC/Scripts/dtml/*']]], data_files=[['Shared/DC/Scripts/dtml', ['Shared/DC/Scripts/dtml/*']]],
cmdclass={'install_data': install_data} )
)
# StructuredText # StructuredText
setup( setup(
...@@ -410,13 +384,11 @@ setup( ...@@ -410,13 +384,11 @@ setup(
packages=['StructuredText', 'StructuredText.regressions', packages=['StructuredText', 'StructuredText.regressions',
'StructuredText.tests'], 'StructuredText.tests'],
data_files=[['StructuredText', ['StructuredText/*.txt']], data_files=[['StructuredText', ['StructuredText/*.txt']],
['StructuredText/regressions', ['StructuredText/regressions',
['StructuredText/regressions/*.ref', ['StructuredText/regressions/*.ref',
'StructuredText/regressions/*.stx']]], 'StructuredText/regressions/*.stx']]],
cmdclass={'install_data': install_data} )
)
# Signals # Signals
setup( setup(
...@@ -424,7 +396,7 @@ setup( ...@@ -424,7 +396,7 @@ setup(
author=AUTHOR, author=AUTHOR,
packages=['Signals'], packages=['Signals'],
) )
# ZRDB # ZRDB
setup( setup(
...@@ -432,11 +404,9 @@ setup( ...@@ -432,11 +404,9 @@ setup(
author=AUTHOR, author=AUTHOR,
packages=['Shared.DC.ZRDB'], packages=['Shared.DC.ZRDB'],
data_files=[['Shared/DC/ZRDB/dtml', ['Shared/DC/ZRDB/dtml/*']], data_files=[['Shared/DC/ZRDB/dtml', ['Shared/DC/ZRDB/dtml/*']],
['Shared/DC/ZRDB/www', ['Shared/DC/ZRDB/www/*']]], ['Shared/DC/ZRDB/www', ['Shared/DC/ZRDB/www/*']]],
cmdclass={'install_data': install_data} )
)
# dcpyexpat # dcpyexpat
PYEXPAT_DIR=os.path.join(PACKAGES_ROOT, 'Shared', 'DC', 'xml', 'pyexpat') PYEXPAT_DIR=os.path.join(PACKAGES_ROOT, 'Shared', 'DC', 'xml', 'pyexpat')
...@@ -448,10 +418,7 @@ setup( ...@@ -448,10 +418,7 @@ setup(
author=AUTHOR, author=AUTHOR,
packages=['Shared.DC.xml', 'Shared.DC.xml.pyexpat'], packages=['Shared.DC.xml', 'Shared.DC.xml.pyexpat'],
data_files=[['Shared/DC/xml/pyexpat', ['Shared/DC/xml/pyexpat/README']]], data_files=[['Shared/DC/xml/pyexpat', ['Shared/DC/xml/pyexpat/README']]],
cmdclass={'install_data': install_data},
ext_modules=[ ext_modules=[
Extension(name='Shared.DC.xml.pyexpat.dcpyexpat', Extension(name='Shared.DC.xml.pyexpat.dcpyexpat',
include_dirs=DCPYEXPAT_INCLUDEDIRS, include_dirs=DCPYEXPAT_INCLUDEDIRS,
...@@ -461,7 +428,7 @@ setup( ...@@ -461,7 +428,7 @@ setup(
PYEXPAT_DIR + '/expat/xmltok/xmlrole.c', PYEXPAT_DIR + '/expat/xmltok/xmlrole.c',
PYEXPAT_DIR + '/expat/xmltok/xmltok.c', PYEXPAT_DIR + '/expat/xmltok/xmltok.c',
PYEXPAT_DIR + '/dcpyexpat.c'])] PYEXPAT_DIR + '/dcpyexpat.c'])]
) )
# TAL # TAL
setup( setup(
...@@ -469,13 +436,11 @@ setup( ...@@ -469,13 +436,11 @@ setup(
author=AUTHOR, author=AUTHOR,
packages=['TAL', 'TAL.tests'], packages=['TAL', 'TAL.tests'],
data_files=[['TAL', ['TAL/*.txt']], data_files=[['TAL', ['TAL/*.txt']],
['TAL/benchmark', ['TAL/benchmark/*']], ['TAL/benchmark', ['TAL/benchmark/*']],
['TAL/tests/input', ['TAL/tests/input/*']], ['TAL/tests/input', ['TAL/tests/input/*']],
['TAL/tests/output', ['TAL/tests/output/*']]], ['TAL/tests/output', ['TAL/tests/output/*']]],
cmdclass={'install_data': install_data} )
)
# Testing # Testing
setup( setup(
...@@ -483,19 +448,17 @@ setup( ...@@ -483,19 +448,17 @@ setup(
author=AUTHOR, author=AUTHOR,
packages=['Testing'], packages=['Testing'],
data_files=[['Testing', ['Testing/README.txt']], data_files=[['Testing', ['Testing/README.txt']],
['Testing/var', ['Testing/var/README.txt']]], ['Testing/var', ['Testing/var/README.txt']]],
cmdclass={'install_data': install_data} )
)
# ThreadedAsync # ThreadedAsync
setup( setup(
name='ThreadedAsync', name='ThreadedAsync',
author=AUTHOR, author=AUTHOR,
packages=['ThreadedAsync'] packages=['ThreadedAsync'],
) )
# TreeDisplay # TreeDisplay
setup( setup(
...@@ -503,10 +466,8 @@ setup( ...@@ -503,10 +466,8 @@ setup(
author=AUTHOR, author=AUTHOR,
packages=['TreeDisplay'], packages=['TreeDisplay'],
data_files=[['TreeDisplay/www', ['TreeDisplay/www/*']]], data_files=[['TreeDisplay/www', ['TreeDisplay/www/*']]],
cmdclass={'install_data': install_data} )
)
# ZClasses # ZClasses
setup( setup(
...@@ -514,11 +475,9 @@ setup( ...@@ -514,11 +475,9 @@ setup(
author=AUTHOR, author=AUTHOR,
packages=['ZClasses'], packages=['ZClasses'],
data_files=[['ZClasses', ['ZClasses/*.gif']], data_files=[['ZClasses', ['ZClasses/*.gif']],
['ZClasses/dtml', ['ZClasses/dtml/*']]], ['ZClasses/dtml', ['ZClasses/dtml/*']]],
cmdclass={'install_data': install_data} )
)
# ZLogger # ZLogger
setup( setup(
...@@ -526,7 +485,7 @@ setup( ...@@ -526,7 +485,7 @@ setup(
author=AUTHOR, author=AUTHOR,
packages=['ZLogger'] packages=['ZLogger']
) )
# ZODB # ZODB
setup( setup(
...@@ -534,7 +493,6 @@ setup( ...@@ -534,7 +493,6 @@ setup(
author=AUTHOR, author=AUTHOR,
packages=['Persistence', 'ZODB', 'ZODB.tests'], packages=['Persistence', 'ZODB', 'ZODB.tests'],
ext_modules=[ ext_modules=[
Extension(name='ZODB.cPersistence', Extension(name='ZODB.cPersistence',
include_dirs=EXTENSIONCLASS_INCLUDEDIRS, include_dirs=EXTENSIONCLASS_INCLUDEDIRS,
...@@ -552,7 +510,7 @@ setup( ...@@ -552,7 +510,7 @@ setup(
Extension(name='ZODB.winlock', Extension(name='ZODB.winlock',
include_dirs=EXTENSIONCLASS_INCLUDEDIRS, include_dirs=EXTENSIONCLASS_INCLUDEDIRS,
sources=['ZODB/winlock.c'])], sources=['ZODB/winlock.c'])],
) )
# ZPublisher # ZPublisher
setup( setup(
...@@ -560,8 +518,7 @@ setup( ...@@ -560,8 +518,7 @@ setup(
author=AUTHOR, author=AUTHOR,
packages=['ZPublisher', 'ZPublisher.tests'], packages=['ZPublisher', 'ZPublisher.tests'],
cmdclass={'install_data': install_data} )
)
# ZTUtils # ZTUtils
setup( setup(
...@@ -569,10 +526,8 @@ setup( ...@@ -569,10 +526,8 @@ setup(
author=AUTHOR, author=AUTHOR,
packages=['ZTUtils', 'ZTUtils.tests'], packages=['ZTUtils', 'ZTUtils.tests'],
data_files=[['ZTUtils', ['ZTUtils/*.txt']]], data_files=[['ZTUtils', ['ZTUtils/*.txt']]],
cmdclass={'install_data': install_data} )
)
# Zope # Zope
setup( setup(
...@@ -580,7 +535,7 @@ setup( ...@@ -580,7 +535,7 @@ setup(
author=AUTHOR, author=AUTHOR,
packages=['Zope', 'Zope.App'] packages=['Zope', 'Zope.App']
) )
# webdav # webdav
setup( setup(
...@@ -588,35 +543,33 @@ setup( ...@@ -588,35 +543,33 @@ setup(
author=AUTHOR, author=AUTHOR,
packages=['webdav'], packages=['webdav'],
data_files=[['webdav/dtml', ['webdav/dtml/*']], data_files=[['webdav/dtml', ['webdav/dtml/*']],
['webdav/www', ['webdav/www/*']]], ['webdav/www', ['webdav/www/*']]],
cmdclass={'install_data': install_data} )
)
# zExceptions # zExceptions
setup( setup(
name='zExceptions', name='zExceptions',
author=AUTHOR, author=AUTHOR,
packages=['zExceptions', 'zExceptions.tests'] packages=['zExceptions', 'zExceptions.tests'],
) )
# zLOG # zLOG
setup( setup(
name='zLOG', name='zLOG',
author=AUTHOR, author=AUTHOR,
packages=['zLOG', 'zLOG.tests'] packages=['zLOG', 'zLOG.tests'],
) )
# zdaemon # zdaemon
setup( setup(
name='zdaemon', name='zdaemon',
author=AUTHOR, author=AUTHOR,
packages=['zdaemon', 'zdaemon.tests'] packages=['zdaemon', 'zdaemon.tests'],
) )
# initgroups # initgroups
...@@ -627,7 +580,7 @@ setup( ...@@ -627,7 +580,7 @@ setup(
ext_modules=[ ext_modules=[
Extension(name='initgroups', Extension(name='initgroups',
sources=['../Components/initgroups/initgroups.c'])] sources=['../Components/initgroups/initgroups.c'])]
) )
# ZopeUndo # ZopeUndo
setup( setup(
...@@ -635,8 +588,7 @@ setup( ...@@ -635,8 +588,7 @@ setup(
author=AUTHOR, author=AUTHOR,
packages=['ZopeUndo', 'ZopeUndo.tests'], packages=['ZopeUndo', 'ZopeUndo.tests'],
)
)
# ZEO # ZEO
setup( setup(
...@@ -645,9 +597,7 @@ setup( ...@@ -645,9 +597,7 @@ setup(
packages=['ZEO', 'ZEO.tests', 'ZEO.zrpc'], packages=['ZEO', 'ZEO.tests', 'ZEO.zrpc'],
data_files=[['ZEO', ['ZEO/*.txt']]], data_files=[['ZEO', ['ZEO/*.txt']]],
cmdclass={'install_data': install_data}, )
)
# Other top-level packages (XXX should these be broken out at all?) # Other top-level packages (XXX should these be broken out at all?)
setup( setup(
...@@ -656,7 +606,7 @@ setup( ...@@ -656,7 +606,7 @@ setup(
py_modules=['Globals', 'ImageFile', 'LOG', 'ts_regex', 'xmlrpclib', py_modules=['Globals', 'ImageFile', 'LOG', 'ts_regex', 'xmlrpclib',
'Lifetime'] 'Lifetime']
) )
# Products base directory # Products base directory
setup( setup(
...@@ -664,7 +614,7 @@ setup( ...@@ -664,7 +614,7 @@ setup(
author=AUTHOR, author=AUTHOR,
packages=['Products'] packages=['Products']
) )
# ExternalMethod product # ExternalMethod product
setup( setup(
...@@ -673,7 +623,6 @@ setup( ...@@ -673,7 +623,6 @@ setup(
packages=['Products.ExternalMethod', 'Products.ExternalMethod.tests', packages=['Products.ExternalMethod', 'Products.ExternalMethod.tests',
'Products.ExternalMethod.tests.Extensions'], 'Products.ExternalMethod.tests.Extensions'],
data_files=[['Products/ExternalMethod', data_files=[['Products/ExternalMethod',
['Products/ExternalMethod/*.gif', ['Products/ExternalMethod/*.gif',
'Products/ExternalMethod/*.txt']], 'Products/ExternalMethod/*.txt']],
...@@ -683,8 +632,7 @@ setup( ...@@ -683,8 +632,7 @@ setup(
['Products/ExternalMethod/help/*']], ['Products/ExternalMethod/help/*']],
['Products/ExternalMethod/www', ['Products/ExternalMethod/www',
['Products/ExternalMethod/www/*']]], ['Products/ExternalMethod/www/*']]],
cmdclass={'install_data': install_data} )
)
# MIMETools product # MIMETools product
setup( setup(
...@@ -692,10 +640,8 @@ setup( ...@@ -692,10 +640,8 @@ setup(
author=AUTHOR, author=AUTHOR,
packages=['Products.MIMETools'], packages=['Products.MIMETools'],
data_files=[['Products/MIMETools', ['Products/MIMETools/*.txt']]], data_files=[['Products/MIMETools', ['Products/MIMETools/*.txt']]],
cmdclass={'install_data': install_data} )
)
# MailHost product # MailHost product
setup( setup(
...@@ -704,13 +650,11 @@ setup( ...@@ -704,13 +650,11 @@ setup(
packages=['Products.MailHost', 'Products.MailHost.help', packages=['Products.MailHost', 'Products.MailHost.help',
'Products.MailHost.tests'], 'Products.MailHost.tests'],
data_files=[['Products/MailHost', ['Products/MailHost/*.txt']], data_files=[['Products/MailHost', ['Products/MailHost/*.txt']],
['Products/MailHost/dtml', ['Products/MailHost/dtml/*']], ['Products/MailHost/dtml', ['Products/MailHost/dtml/*']],
['Products/MailHost/help', ['Products/MailHost/help/*.stx']], ['Products/MailHost/help', ['Products/MailHost/help/*.stx']],
['Products/MailHost/www', ['Products/MailHost/www/*']]], ['Products/MailHost/www', ['Products/MailHost/www/*']]],
cmdclass={'install_data': install_data} )
)
# OFSP product # OFSP product
setup( setup(
...@@ -718,13 +662,11 @@ setup( ...@@ -718,13 +662,11 @@ setup(
author=AUTHOR, author=AUTHOR,
packages=['Products.OFSP', 'Products.OFSP.help'], packages=['Products.OFSP', 'Products.OFSP.help'],
data_files=[['Products/OFSP', ['Products/OFSP/*.txt']], data_files=[['Products/OFSP', ['Products/OFSP/*.txt']],
['Products/OFSP/dtml', ['Products/OFSP/dtml/*']], ['Products/OFSP/dtml', ['Products/OFSP/dtml/*']],
['Products/OFSP/help', ['Products/OFSP/help/*.stx']], ['Products/OFSP/help', ['Products/OFSP/help/*.stx']],
['Products/OFSP/images', ['Products/OFSP/images/*']]], ['Products/OFSP/images', ['Products/OFSP/images/*']]],
cmdclass={'install_data': install_data} )
)
# PageTemplates product # PageTemplates product
setup( setup(
...@@ -733,7 +675,6 @@ setup( ...@@ -733,7 +675,6 @@ setup(
packages=['Products.PageTemplates', 'Products.PageTemplates.help', packages=['Products.PageTemplates', 'Products.PageTemplates.help',
'Products.PageTemplates.tests'], 'Products.PageTemplates.tests'],
data_files=[['Products/PageTemplates', ['Products/PageTemplates/*.txt']], data_files=[['Products/PageTemplates', ['Products/PageTemplates/*.txt']],
['Products/PageTemplates/examples', ['Products/PageTemplates/examples',
['Products/PageTemplates/examples/*']], ['Products/PageTemplates/examples/*']],
...@@ -745,8 +686,7 @@ setup( ...@@ -745,8 +686,7 @@ setup(
['Products/PageTemplates/tests/output/*']], ['Products/PageTemplates/tests/output/*']],
['Products/PageTemplates/www', ['Products/PageTemplates/www',
['Products/PageTemplates/www/*']]], ['Products/PageTemplates/www/*']]],
cmdclass={'install_data': install_data} )
)
# PluginIndexes product # PluginIndexes product
setup( setup(
...@@ -812,7 +752,6 @@ setup( ...@@ -812,7 +752,6 @@ setup(
['Products/PluginIndexes/help/*']], ['Products/PluginIndexes/help/*']],
['Products/PluginIndexes/www', ['Products/PluginIndexes/www',
['Products/PluginIndexes/www/*']]], ['Products/PluginIndexes/www/*']]],
cmdclass={'install_data': install_data},
ext_modules=[ ext_modules=[
Extension(name='Products.PluginIndexes.TextIndex.Splitter.ZopeSplitter.ZopeSplitter', Extension(name='Products.PluginIndexes.TextIndex.Splitter.ZopeSplitter.ZopeSplitter',
...@@ -821,7 +760,7 @@ setup( ...@@ -821,7 +760,7 @@ setup(
sources=['Products/PluginIndexes/TextIndex/Splitter/ISO_8859_1_Splitter/src/ISO_8859_1_Splitter.c']), sources=['Products/PluginIndexes/TextIndex/Splitter/ISO_8859_1_Splitter/src/ISO_8859_1_Splitter.c']),
Extension(name='Products.PluginIndexes.TextIndex.Splitter.UnicodeSplitter.UnicodeSplitter', Extension(name='Products.PluginIndexes.TextIndex.Splitter.UnicodeSplitter.UnicodeSplitter',
sources=['Products/PluginIndexes/TextIndex/Splitter/UnicodeSplitter/src/UnicodeSplitter.c'])] sources=['Products/PluginIndexes/TextIndex/Splitter/UnicodeSplitter/src/UnicodeSplitter.c'])]
) )
# PythonScripts product # PythonScripts product
setup( setup(
...@@ -838,8 +777,7 @@ setup( ...@@ -838,8 +777,7 @@ setup(
['Products/PythonScripts/tests/tscripts/*']], ['Products/PythonScripts/tests/tscripts/*']],
['Products/PythonScripts/www', ['Products/PythonScripts/www',
['Products/PythonScripts/www/*']]], ['Products/PythonScripts/www/*']]],
cmdclass={'install_data': install_data} )
)
# Sessions product # Sessions product
setup( setup(
...@@ -848,12 +786,10 @@ setup( ...@@ -848,12 +786,10 @@ setup(
packages=['Products.Sessions', 'Products.Sessions.help', packages=['Products.Sessions', 'Products.Sessions.help',
'Products.Sessions.tests', 'Products.Sessions.stresstests'], 'Products.Sessions.tests', 'Products.Sessions.stresstests'],
data_files=[['Products/Sessions/help', ['Products/Sessions/help/*.stx']], data_files=[['Products/Sessions/help', ['Products/Sessions/help/*.stx']],
['Products/Sessions/dtml', ['Products/Sessions/dtml/*']], ['Products/Sessions/dtml', ['Products/Sessions/dtml/*']],
['Products/Sessions/www', ['Products/Sessions/www/*']]], ['Products/Sessions/www', ['Products/Sessions/www/*']]],
cmdclass={'install_data': install_data} )
)
# SiteAccess product # SiteAccess product
setup( setup(
...@@ -861,13 +797,11 @@ setup( ...@@ -861,13 +797,11 @@ setup(
author=AUTHOR, author=AUTHOR,
packages=['Products.SiteAccess', 'Products.SiteAccess.Extensions'], packages=['Products.SiteAccess', 'Products.SiteAccess.Extensions'],
data_files=[['Products/SiteAccess', ['Products/SiteAccess/*.txt']], data_files=[['Products/SiteAccess', ['Products/SiteAccess/*.txt']],
['Products/SiteAccess/doc', ['Products/SiteAccess/doc/*']], ['Products/SiteAccess/doc', ['Products/SiteAccess/doc/*']],
['Products/SiteAccess/help', ['Products/SiteAccess/help/*']], ['Products/SiteAccess/help', ['Products/SiteAccess/help/*']],
['Products/SiteAccess/www', ['Products/SiteAccess/www/*']]], ['Products/SiteAccess/www', ['Products/SiteAccess/www/*']]],
cmdclass={'install_data': install_data} )
)
# SiteErrorLog product # SiteErrorLog product
setup( setup(
...@@ -875,11 +809,9 @@ setup( ...@@ -875,11 +809,9 @@ setup(
author=AUTHOR, author=AUTHOR,
packages=['Products.SiteErrorLog'], packages=['Products.SiteErrorLog'],
data_files=[['Products/SiteErrorLog/www', data_files=[['Products/SiteErrorLog/www',
['Products/SiteErrorLog/www/*']]], ['Products/SiteErrorLog/www/*']]],
cmdclass={'install_data': install_data} )
)
# StandardCacheManagers product # StandardCacheManagers product
setup( setup(
...@@ -887,7 +819,6 @@ setup( ...@@ -887,7 +819,6 @@ setup(
author=AUTHOR, author=AUTHOR,
packages=['Products.StandardCacheManagers'], packages=['Products.StandardCacheManagers'],
data_files=[['Products/StandardCacheManagers', data_files=[['Products/StandardCacheManagers',
['Products/StandardCacheManagers/*.txt', ['Products/StandardCacheManagers/*.txt',
'Products/StandardCacheManagers/*.gif']], 'Products/StandardCacheManagers/*.gif']],
...@@ -895,8 +826,7 @@ setup( ...@@ -895,8 +826,7 @@ setup(
['Products/StandardCacheManagers/dtml/*']], ['Products/StandardCacheManagers/dtml/*']],
['Products/StandardCacheManagers/help', ['Products/StandardCacheManagers/help',
['Products/StandardCacheManagers/help/*']]], ['Products/StandardCacheManagers/help/*']]],
cmdclass={'install_data': install_data} )
)
# TemporaryFolder product # TemporaryFolder product
setup( setup(
...@@ -904,15 +834,13 @@ setup( ...@@ -904,15 +834,13 @@ setup(
author=AUTHOR, author=AUTHOR,
packages=['Products.TemporaryFolder', 'Products.TemporaryFolder.tests'], packages=['Products.TemporaryFolder', 'Products.TemporaryFolder.tests'],
data_files=[['Products/TemporaryFolder/dtml', data_files=[['Products/TemporaryFolder/dtml',
['Products/TemporaryFolder/dtml/*']], ['Products/TemporaryFolder/dtml/*']],
['Products/TemporaryFolder/help', ['Products/TemporaryFolder/help',
['Products/TemporaryFolder/help/*']], ['Products/TemporaryFolder/help/*']],
['Products/TemporaryFolder/www', ['Products/TemporaryFolder/www',
['Products/TemporaryFolder/www/*']]], ['Products/TemporaryFolder/www/*']]],
cmdclass={'install_data': install_data} )
)
# Transience product # Transience product
setup( setup(
...@@ -921,14 +849,12 @@ setup( ...@@ -921,14 +849,12 @@ setup(
packages=['Products.Transience', 'Products.Transience.help', packages=['Products.Transience', 'Products.Transience.help',
'Products.Transience.tests'], 'Products.Transience.tests'],
data_files=[['Products/Transience', ['Products/Transience/*.stx']], data_files=[['Products/Transience', ['Products/Transience/*.stx']],
['Products/Transience/dtml', ['Products/Transience/dtml/*']], ['Products/Transience/dtml', ['Products/Transience/dtml/*']],
['Products/Transience/help', ['Products/Transience/help',
['Products/Transience/help/*.stx']], ['Products/Transience/help/*.stx']],
['Products/Transience/www', ['Products/Transience/www/*']]], ['Products/Transience/www', ['Products/Transience/www/*']]],
cmdclass={'install_data': install_data} )
)
# ZCatalog product # ZCatalog product
setup( setup(
...@@ -937,14 +863,12 @@ setup( ...@@ -937,14 +863,12 @@ setup(
packages=['Products.ZCatalog', 'Products.ZCatalog.help', packages=['Products.ZCatalog', 'Products.ZCatalog.help',
'Products.ZCatalog.regressiontests', 'Products.ZCatalog.tests'], 'Products.ZCatalog.regressiontests', 'Products.ZCatalog.tests'],
data_files=[['Products/ZCatalog', ['Products/ZCatalog/*.gif', data_files=[['Products/ZCatalog', ['Products/ZCatalog/*.gif',
'Products/ZCatalog/*.txt']], 'Products/ZCatalog/*.txt']],
['Products/ZCatalog/dtml', ['Products/ZCatalog/dtml/*']], ['Products/ZCatalog/dtml', ['Products/ZCatalog/dtml/*']],
['Products/ZCatalog/help', ['Products/ZCatalog/help/*.stx']], ['Products/ZCatalog/help', ['Products/ZCatalog/help/*.stx']],
['Products/ZCatalog/www', ['Products/ZCatalog/www/*']]], ['Products/ZCatalog/www', ['Products/ZCatalog/www/*']]],
cmdclass={'install_data': install_data} )
)
# ZCTextIndex product # ZCTextIndex product
setup( setup(
...@@ -956,17 +880,14 @@ setup( ...@@ -956,17 +880,14 @@ setup(
sources=['Products/ZCTextIndex/stopper.c']), sources=['Products/ZCTextIndex/stopper.c']),
Extension(name='Products.ZCTextIndex.okascore', Extension(name='Products.ZCTextIndex.okascore',
sources=['Products/ZCTextIndex/okascore.c'])], sources=['Products/ZCTextIndex/okascore.c'])],
packages=['Products.ZCTextIndex', 'Products.ZCTextIndex.tests'], packages=['Products.ZCTextIndex', 'Products.ZCTextIndex.tests'],
data_files=[['Products/ZCTextIndex', ['Products/ZCTextIndex/README.txt']], data_files=[['Products/ZCTextIndex', ['Products/ZCTextIndex/README.txt']],
['Products/ZCTextIndex/dtml', ['Products/ZCTextIndex/dtml/*']], ['Products/ZCTextIndex/dtml', ['Products/ZCTextIndex/dtml/*']],
['Products/ZCTextIndex/help', ['Products/ZCTextIndex/help/*']], ['Products/ZCTextIndex/help', ['Products/ZCTextIndex/help/*']],
['Products/ZCTextIndex/tests', ['Products/ZCTextIndex/tests',
['Products/ZCTextIndex/tests/python.txt']], ['Products/ZCTextIndex/tests/python.txt']],
['Products/ZCTextIndex/www', ['Products/ZCTextIndex/www/*']]], ['Products/ZCTextIndex/www', ['Products/ZCTextIndex/www/*']]],
cmdclass={'install_data': install_data} )
)
# ZGadflyDA product # ZGadflyDA product
setup( setup(
...@@ -974,7 +895,6 @@ setup( ...@@ -974,7 +895,6 @@ setup(
author=AUTHOR, author=AUTHOR,
packages=['Products.ZGadflyDA', 'Products.ZGadflyDA.gadfly'], packages=['Products.ZGadflyDA', 'Products.ZGadflyDA.gadfly'],
data_files=[['Products/ZGadflyDA', ['Products/ZGadflyDA/*.txt']], data_files=[['Products/ZGadflyDA', ['Products/ZGadflyDA/*.txt']],
['Products/ZGadflyDA/dtml', ['Products/ZGadflyDA/dtml/*']], ['Products/ZGadflyDA/dtml', ['Products/ZGadflyDA/dtml/*']],
['Products/ZGadflyDA/icons', ['Products/ZGadflyDA/icons/*']], ['Products/ZGadflyDA/icons', ['Products/ZGadflyDA/icons/*']],
...@@ -982,8 +902,7 @@ setup( ...@@ -982,8 +902,7 @@ setup(
['Products/ZGadflyDA/gadfly/COPYRIGHT', ['Products/ZGadflyDA/gadfly/COPYRIGHT',
'Products/ZGadflyDA/gadfly/sql.mar', 'Products/ZGadflyDA/gadfly/sql.mar',
'Products/ZGadflyDA/gadfly/*.html']]], 'Products/ZGadflyDA/gadfly/*.html']]],
cmdclass={'install_data': install_data} )
)
# ZSQLMethods product # ZSQLMethods product
setup( setup(
...@@ -991,14 +910,12 @@ setup( ...@@ -991,14 +910,12 @@ setup(
author=AUTHOR, author=AUTHOR,
packages=['Products.ZSQLMethods', 'Products.ZSQLMethods.help'], packages=['Products.ZSQLMethods', 'Products.ZSQLMethods.help'],
data_files=[['Products/ZSQLMethods', ['Products/ZSQLMethods/*.txt', data_files=[['Products/ZSQLMethods', ['Products/ZSQLMethods/*.txt',
'Products/ZSQLMethods/*.gif']], 'Products/ZSQLMethods/*.gif']],
['Products/ZSQLMethods/dtml', ['Products/ZSQLMethods/dtml/*']], ['Products/ZSQLMethods/dtml', ['Products/ZSQLMethods/dtml/*']],
['Products/ZSQLMethods/help', ['Products/ZSQLMethods/help',
['Products/ZSQLMethods/help/*.stx']]], ['Products/ZSQLMethods/help/*.stx']]],
cmdclass={'install_data': install_data} )
)
# ZopeTutorial product # ZopeTutorial product
setup( setup(
...@@ -1006,37 +923,34 @@ setup( ...@@ -1006,37 +923,34 @@ setup(
author=AUTHOR, author=AUTHOR,
packages=['Products.ZopeTutorial'], packages=['Products.ZopeTutorial'],
data_files=[['Products/ZopeTutorial', ['Products/ZopeTutorial/*.txt', data_files=[['Products/ZopeTutorial', ['Products/ZopeTutorial/*.txt',
'Products/ZopeTutorial/*.stx']], 'Products/ZopeTutorial/*.stx']],
['Products/ZopeTutorial/dtml', ['Products/ZopeTutorial/dtml',
['Products/ZopeTutorial/dtml/*']]], ['Products/ZopeTutorial/dtml/*']]],
cmdclass={'install_data': install_data} )
)
# Call distutils setup with all lib/python packages and modules, and # Call distutils setup with all lib/python packages and modules, and
# flush setup_info. Wondering why we run py_modules separately? So am I. # flush setup_info. Wondering why we run py_modules separately? So am I.
# Distutils won't let us specify packages and py_modules in the same call. # Distutils won't let us specify packages and py_modules in the same call.
distutils_setup( distutils.core.setup(
name='Zope', name='Zope',
author=AUTHOR, author=AUTHOR,
packages=setup_info.get('packages', []), packages=setup_info.get('packages', []),
data_files=setup_info.get('data_files', []), data_files=setup_info.get('data_files', []),
headers=setup_info.get('headers', []), headers=setup_info.get('headers', []),
ext_modules=setup_info.get('ext_modules', []), ext_modules=setup_info.get('ext_modules', []),
cmdclass={'install': install, 'install_data': install_data} cmdclass={'install': install, 'install_data': install_data}
) )
distutils_setup( distutils.core.setup(
name='Zope', name='Zope',
author=AUTHOR, author=AUTHOR,
py_modules=setup_info.get('py_modules', []), py_modules=setup_info.get('py_modules', []),
cmdclass={'install': install, 'install_data': install_data} cmdclass={'install': install, 'install_data': install_data}
) )
setup_info = {} setup_info = {}
# The rest of these modules live in the root of the source tree # The rest of these modules live in the root of the source tree
...@@ -1052,7 +966,6 @@ setup( ...@@ -1052,7 +966,6 @@ setup(
'ZServer.medusa.misc', 'ZServer.medusa.script_handler_demo', 'ZServer.medusa.misc', 'ZServer.medusa.script_handler_demo',
'ZServer.medusa.sendfile', 'ZServer.medusa.test', 'ZServer.medusa.sendfile', 'ZServer.medusa.test',
'ZServer.medusa.thread'], 'ZServer.medusa.thread'],
data_files=[['ZServer', ['ZServer/*.txt']], data_files=[['ZServer', ['ZServer/*.txt']],
['ZServer/medusa', ['ZServer/medusa/*.txt', ['ZServer/medusa', ['ZServer/medusa/*.txt',
'ZServer/medusa/*.html']], 'ZServer/medusa/*.html']],
...@@ -1064,16 +977,7 @@ setup( ...@@ -1064,16 +977,7 @@ setup(
['ZServer/medusa/sendfile', ['ZServer/medusa/sendfile',
['ZServer/medusa/sendfile/README']], ['ZServer/medusa/sendfile/README']],
['ZServer/medusa/test', ['ZServer/medusa/test/*.txt']]], ['ZServer/medusa/test', ['ZServer/medusa/test/*.txt']]],
cmdclass={'install_data': install_data}, )
# Does not work on all platforms... not like we ever compiled it before
# anyway
#
# ext_modules=[
# Extension(name='ZServer.medusa.sendfile.sendfilemodule',
# sources=['ZServer/medusa/sendfile/sendfilemodule.c'])]
)
# z2.py # z2.py
setup( setup(
...@@ -1081,7 +985,7 @@ setup( ...@@ -1081,7 +985,7 @@ setup(
author=AUTHOR, author=AUTHOR,
py_modules=['z2'] py_modules=['z2']
) )
# zpasswd # zpasswd
setup( setup(
...@@ -1089,7 +993,7 @@ setup( ...@@ -1089,7 +993,7 @@ setup(
author=AUTHOR, author=AUTHOR,
py_modules=['zpasswd'] py_modules=['zpasswd']
) )
# Default imports # Default imports
setup( setup(
...@@ -1097,27 +1001,25 @@ setup( ...@@ -1097,27 +1001,25 @@ setup(
author=AUTHOR, author=AUTHOR,
data_files=[['import', ['import/*.zexp']]], data_files=[['import', ['import/*.zexp']]],
cmdclass={'install_data': install_data} )
)
# And now, the root-level stuff # And now, the root-level stuff
distutils_setup( distutils.core.setup(
name='Zope', name='Zope',
author=AUTHOR, author=AUTHOR,
packages=setup_info.get('packages', []), packages=setup_info.get('packages', []),
data_files=setup_info.get('data_files', []), data_files=setup_info.get('data_files', []),
headers=setup_info.get('headers', []), headers=setup_info.get('headers', []),
ext_modules=setup_info.get('ext_modules', []), ext_modules=setup_info.get('ext_modules', []),
cmdclass={'install': install, 'install_data': install_data} cmdclass={'install': install, 'install_data': install_data}
) )
distutils_setup( distutils.core.setup(
name='Zope', name='Zope',
author=AUTHOR, author=AUTHOR,
py_modules=setup_info.get('py_modules', []), py_modules=setup_info.get('py_modules', []),
cmdclass={'install': install, 'install_data': install_data} cmdclass={'install': install, 'install_data': install_data}
) )
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