From 40e0f2402fbe537048ef04ea2936838588e96698 Mon Sep 17 00:00:00 2001 From: Ricky Stewart Date: Thu, 10 Sep 2020 12:54:49 +0000 Subject: [PATCH] Bug 1663786 - Remove "copy" support from `virtualenv` handling r=ahal This is unused. Differential Revision: https://phabricator.services.mozilla.com/D89509 --- python/mozbuild/mozbuild/virtualenv.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/python/mozbuild/mozbuild/virtualenv.py b/python/mozbuild/mozbuild/virtualenv.py index ceee6438cd7ec..c2476d5ed7be7 100644 --- a/python/mozbuild/mozbuild/virtualenv.py +++ b/python/mozbuild/mozbuild/virtualenv.py @@ -298,9 +298,6 @@ def populate(self, sitecustomize=None): processed like normal. e.g. "optional:setup.py:python/foo:built_ext:-i" - copy -- Copies the given file in the virtualenv site packages - directory. - packages.txt -- Denotes that the specified path is a child manifest. It will be read and processed as if its contents were concatenated into the manifest being read. @@ -354,16 +351,6 @@ def handle_package(package): return True - if package[0] == 'copy': - assert len(package) == 2 - - src = os.path.join(self.topsrcdir, package[1]) - dst = os.path.join(python_lib, os.path.basename(package[1])) - - shutil.copy(src, dst) - - return True - if package[0] == 'packages.txt': assert len(package) == 2