~hardware-certification/zope3/certify-staging-2.5

« back to all changes in this revision

Viewing changes to .svn/text-base/setup.py.svn-base

  • Committer: Marc Tardif
  • Date: 2008-04-26 19:03:34 UTC
  • Revision ID: cr3@lime-20080426190334-u16xo4llz56vliqf
Initial import.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#############################################################################
 
2
#
 
3
# Copyright (c) 2002 Zope Corporation and Contributors.
 
4
# All Rights Reserved.
 
5
#
 
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.
 
12
#
 
13
##############################################################################
 
14
 
 
15
import os
 
16
import site
 
17
import sys
 
18
 
 
19
here = os.path.dirname(os.path.abspath(__file__))
 
20
buildsupport = os.path.join(here, "buildsupport")
 
21
 
 
22
# Add 'buildsupport' to sys.path and process *.pth files from 'buildsupport':
 
23
last = len(sys.path)
 
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
 
28
    new = sys.path[last:]
 
29
    del sys.path[last:]
 
30
    sys.path[:0] = new
 
31
 
 
32
import zpkgsetup.package
 
33
import zpkgsetup.publication
 
34
import zpkgsetup.setup
 
35
 
 
36
 
 
37
context = zpkgsetup.setup.SetupContext(
 
38
    "Zope", "3.1.0a42", __file__)
 
39
 
 
40
context.load_metadata(
 
41
    os.path.join(here, "releases", "Zope",
 
42
                 zpkgsetup.publication.PUBLICATION_CONF))
 
43
 
 
44
context.walk_packages("src")
 
45
context.setup()