From a03448509e498a8520d31f6b32ea78d32aa21af4 Mon Sep 17 00:00:00 2001 From: Mitchell Stokes Date: Sat, 7 Jan 2017 10:21:31 -0800 Subject: [PATCH] deploy-ng: Use a clean sys.path for each platform --- direct/src/showutil/dist.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/direct/src/showutil/dist.py b/direct/src/showutil/dist.py index 876de9d23d..2f57e32a2f 100644 --- a/direct/src/showutil/dist.py +++ b/direct/src/showutil/dist.py @@ -55,6 +55,8 @@ class build(distutils.command.build.build): use_wheels = True print("Building platforms: {}".format(','.join(platforms))) + saved_path = sys.path[:] + for platform in platforms: builddir = os.path.join(self.build_base, platform) @@ -86,6 +88,7 @@ class build(distutils.command.build.build): whlfiles = {whl: zipfile.ZipFile(whl) for whl in wheelpaths} # Add whl files to the path so they are picked up by modulefinder + sys.path = saved_path[:] for whl in wheelpaths: sys.path.insert(0, whl)