1
#############################################################################
3
# Copyright (c) 2002 Zope Corporation and Contributors.
6
# This software is subject to the provisions of the Zope Public License,
7
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
8
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
9
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
10
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
11
# FOR A PARTICULAR PURPOSE.
13
##############################################################################
19
here = os.path.dirname(os.path.abspath(__file__))
20
buildsupport = os.path.join(here, "buildsupport")
22
# Add 'buildsupport' to sys.path and process *.pth files from 'buildsupport':
24
site.addsitedir(buildsupport)
25
if len(sys.path) > last:
26
# Move all appended directories to the start.
27
# Make sure we use ZConfig shipped with the distribution
32
import zpkgsetup.package
33
import zpkgsetup.publication
34
import zpkgsetup.setup
37
context = zpkgsetup.setup.SetupContext(
38
"Zope", "3.1.0a42", __file__)
40
context.load_metadata(
41
os.path.join(here, "releases", "Zope",
42
zpkgsetup.publication.PUBLICATION_CONF))
44
context.walk_packages("src")