File: setup.py

package info (click to toggle)
zopeinterface 3.0.1-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 700 kB
  • ctags: 1,053
  • sloc: python: 4,958; ansic: 417; makefile: 19
file content (22 lines) | stat: -rw-r--r-- 538 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#! /usr/bin/env python

import os.path
import zpkgsetup.publication
import zpkgsetup.setup

try:
    __file__
except NameError:
    # Python 2.2.x does not have __file__ for scripts.
    __file__ = sys.argv[0]

here = os.path.dirname(__file__)


context = zpkgsetup.setup.SetupContext('zpkgsetup', None, __file__)

pkgdir = os.path.join(here, 'zpkgsetup')
context.load_metadata(os.path.join(pkgdir,
                                   zpkgsetup.publication.PUBLICATION_CONF))
context.scan('zpkgsetup', pkgdir, 'zpkgsetup')
context.setup()