From 1c4773a8e4f7505c18542e7216a03d8bff0d992f Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 7 Jan 2020 14:52:06 +0100 Subject: [PATCH] dist: move "import pip" from module level to download_wheels The aim of this is that pip is no longer a dependency to be able to run test_imports. --- direct/src/dist/commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/direct/src/dist/commands.py b/direct/src/dist/commands.py index 1b70a980f0..c9682bc864 100644 --- a/direct/src/dist/commands.py +++ b/direct/src/dist/commands.py @@ -8,7 +8,6 @@ from __future__ import print_function import collections import os -import pip import plistlib import sys import subprocess @@ -396,6 +395,8 @@ class build_apps(setuptools.Command): directory containing the Python runtime libraries, which will be added to sys.path.""" + import pip + self.announce('Gathering wheels for platform: {}'.format(platform), distutils.log.INFO) whldir = os.path.join(self.build_base, '__whl_cache__')