Commit 8220a4cb authored by Fred Drake's avatar Fred Drake

move to the more dynamic use of zpkg being used for Zope 3

(not strictly necessary, but keeps different projects on similar footings)
parent d4c46562
#!/usr/bin/env python #############################################################################
##############################################################################
# #
# Copyright (c) 2005 Zope Corporation and Contributors. # Copyright (c) 2002 Zope Corporation and Contributors.
# All Rights Reserved. # All Rights Reserved.
# #
# This software is subject to the provisions of the Zope Public License, # This software is subject to the provisions of the Zope Public License,
...@@ -14,40 +13,32 @@ ...@@ -14,40 +13,32 @@
############################################################################## ##############################################################################
import os import os
import posixpath
import sys
import zpkgsetup.package
import zpkgsetup.publication
import zpkgsetup.setup import zpkgsetup.setup
# Note that release.py must be able to recognize the VERSION line.
VERSION = "3.5.0a7"
here = os.path.dirname(os.path.abspath(__file__)) here = os.path.dirname(os.path.abspath(__file__))
def join(*parts): context = zpkgsetup.setup.SetupContext(
local_full_path = os.path.join(here, *parts) "ZODB", "3.5.0a42", __file__)
relative_path = posixpath.join(*parts)
return local_full_path, relative_path
context = zpkgsetup.setup.SetupContext("ZODB3", VERSION, __file__)
context.load_metadata( context.load_metadata(
os.path.join(here, "PUBLICATION.cfg")) os.path.join(here,
zpkgsetup.publication.PUBLICATION_CONF))
context.scan("ZODB3", here, ".")
context.scan("BTrees", *join("src", "BTrees")) for root, dirs, files in os.walk("src"):
context.scan("Persistence", *join("src", "Persistence")) for d in dirs[:]:
context.scan("persistent", *join("src", "persistent")) # drop sub-directories that are not Python packages:
context.scan("ThreadedAsync", *join("src", "ThreadedAsync")) initfn = os.path.join(root, d, "__init__.py")
context.scan("transaction", *join("src", "transaction")) if not os.path.isfile(initfn):
context.scan("ZConfig", *join("src", "ZConfig")) dirs.remove(d)
context.scan("zdaemon", *join("src", "zdaemon")) if zpkgsetup.package.PACKAGE_CONF in files:
context.scan("ZEO", *join("src", "ZEO")) # scan this directory as a package:
context.scan("ZODB", *join("src", "ZODB")) pkgname = root[4:].replace(os.path.sep, ".")
context.scan("ZODB-Scripts", *join("src", "scripts")) local_full_path = os.path.join(here, root)
context.scan("zope", *join("src", "zope")) relative_path = root.replace(os.path.sep, "/")
context.scan("zope.interface", *join("src", "zope", "interface")) context.scan(pkgname, local_full_path, relative_path)
context.scan("zope.proxy", *join("src", "zope", "proxy"))
context.scan("zope.testing", *join("src", "zope", "testing"))
context.scan("ZopeUndo", *join("src", "ZopeUndo"))
context.setup() context.setup()
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