Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(231)

Side by Side Diff: vpython/venv/venv_resources_test.go

Issue 2864423002: vpython: Leave "pip" and related tools. (Closed)
Patch Set: fix word Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « vpython/venv/venv.go ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The LUCI Authors. All rights reserved. 1 // Copyright 2017 The LUCI Authors. All rights reserved.
2 // Use of this source code is governed under the Apache License, Version 2.0 2 // Use of this source code is governed under the Apache License, Version 2.0
3 // that can be found in the LICENSE file. 3 // that can be found in the LICENSE file.
4 4
5 package venv 5 package venv
6 6
7 import ( 7 import (
8 "archive/zip" 8 "archive/zip"
9 "crypto/sha256" 9 "crypto/sha256"
10 "encoding/hex" 10 "encoding/hex"
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 BaseDir: filepath.Join(outDir, ".env"), 197 BaseDir: filepath.Join(outDir, ".env"),
198 Python: py.Python, 198 Python: py.Python,
199 Package: vpython.Spec_Package{ 199 Package: vpython.Spec_Package{
200 Name: "foo/bar/virtualenv", 200 Name: "foo/bar/virtualenv",
201 Version: "whatever", 201 Version: "whatever",
202 }, 202 },
203 Loader: tl, 203 Loader: tl,
204 Spec: &vpython.Spec{}, 204 Spec: &vpython.Spec{},
205 205
206 // Testing parameters for this bootstrap wheel-building environm ent. 206 // Testing parameters for this bootstrap wheel-building environm ent.
207 » » testPreserveInstallationCapability: true, 207 » » testLeaveReadWrite: true,
208 » » testLeaveReadWrite: true,
209 } 208 }
210 209
211 // Build the wheel in a temporary directory, then copy it into outDir. T his 210 // Build the wheel in a temporary directory, then copy it into outDir. T his
212 // will stop wheel builds from stepping on each other or inheriting each 211 // will stop wheel builds from stepping on each other or inheriting each
213 // others' state accidentally. 212 // others' state accidentally.
214 err = testfs.WithTempDir(t, "vpython_venv_wheel", func(tdir string) erro r { 213 err = testfs.WithTempDir(t, "vpython_venv_wheel", func(tdir string) erro r {
215 buildDir := filepath.Join(tdir, "build") 214 buildDir := filepath.Join(tdir, "build")
216 if err := filesystem.MakeDirs(buildDir); err != nil { 215 if err := filesystem.MakeDirs(buildDir); err != nil {
217 return err 216 return err
218 } 217 }
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 if _, err := io.Copy(dfd, sfd); err != nil { 470 if _, err := io.Copy(dfd, sfd); err != nil {
472 return errors.Annotate(err).Reason("failed to copy file").Err() 471 return errors.Annotate(err).Reason("failed to copy file").Err()
473 } 472 }
474 if fi != nil { 473 if fi != nil {
475 if err := os.Chmod(dst, fi.Mode()); err != nil { 474 if err := os.Chmod(dst, fi.Mode()); err != nil {
476 return errors.Annotate(err).Reason("failed to chmod").Er r() 475 return errors.Annotate(err).Reason("failed to chmod").Er r()
477 } 476 }
478 } 477 }
479 return nil 478 return nil
480 } 479 }
OLDNEW
« no previous file with comments | « vpython/venv/venv.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698