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 ...@@ -19,9 +19,15 @@ import sys
here = os.path.dirname(os.path.abspath(__file__)) here = os.path.dirname(os.path.abspath(__file__))
buildsupport = os.path.join(here, "buildsupport") buildsupport = os.path.join(here, "buildsupport")
sys.path.insert(0, buildsupport) # Add 'buildsupport' to sys.path and process *.pth files from 'buildsupport':
# Process *.pth files from buildsupport/: last = len(sys.path)
site.addsitedir(buildsupport) 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.package
import zpkgsetup.publication 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