Commit 27feee92 authored by Dmitry Vasiliev's avatar Dmitry Vasiliev

Make sure we use ZConfig shipped with the distribution

parent 691508dc
......@@ -19,9 +19,15 @@ import sys
here = os.path.dirname(os.path.abspath(__file__))
buildsupport = os.path.join(here, "buildsupport")
sys.path.insert(0, buildsupport)
# Process *.pth files from buildsupport/:
# Add 'buildsupport' to sys.path and process *.pth files from 'buildsupport':
last = len(sys.path)
site.addsitedir(buildsupport)
if len(sys.path) > last:
# Move all appended directories to the start.
# Make sure we use ZConfig shipped with the distribution
new = sys.path[last:]
del sys.path[last:]
sys.path[:0] = new
import zpkgsetup.package
import zpkgsetup.publication
......
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