Skip to content

Commit

Permalink
Bug 1663786 - Remove "copy" support from virtualenv handling r=ahal
Browse files Browse the repository at this point in the history
This is unused.

Differential Revision: https://phabricator.services.mozilla.com/D89509
  • Loading branch information
Ricky Stewart committed Sep 10, 2020
1 parent 01c1936 commit 40e0f24
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions python/mozbuild/mozbuild/virtualenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 40e0f24

Please sign in to comment.