vpython

package
v0.0.0-...-0a4d78a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2025 License: BSD-3-Clause Imports: 20 Imported by: 0

README

[TOC]

vpython2.7

This directory contains a forked copy of vpython which is known to work with Python 2.7, and has this interpreter bundled.

It is intended for specific, limited use cases where migrating to Python 3 is not feasible.

Please do not add dependencies on vpython2.7 without talking to vpython OWNERS first to discuss your use case.

See [https://source.chromium.org/chromium/infra/infra/+/main:go/src/go.chromium.org/luci/vpython/] for current vpython code and documentation.

Documentation

Index

Constants

View Source
const (
	// BypassENV is an environment variable that is used to detect if we shouldn't
	// do any vpython stuff at all, but should instead directly invoke the next
	// `python` on PATH.
	BypassENV = "VPYTHON_BYPASS"

	// BypassSentinel must be the BypassENV value (verbatim) in order to trigger
	// vpython bypass.
	BypassSentinel = "manually managed python not supported by chrome operations"
)

Variables

This section is empty.

Functions

func Main

func Main(python3only bool)

Main implements the vpython binary.

If `python3only` is false, this will inspect argv[0] to determine if the current process "looks like" a python3 invocation and set defaults accordingly. Otherwise this will always have python3 behavior.

The argv[0] inspection is for backwards compatibility with original `vpython` deployments which symlinked `vpython3` to the actual `vpython` binary.

Types

This section is empty.

Directories

Path Synopsis
cmd
Package vpython implements the vpython tool and associated libraries.
Package vpython implements the vpython tool and associated libraries.
api/vpython
Package vpython contains `vpython` environment definition protobufs.
Package vpython contains `vpython` environment definition protobufs.
application/internal/prober
Package prober exports Probe, which implements logic to identify a wrapper's wrapped target.
Package prober exports Probe, which implements logic to identify a wrapper's wrapped target.
venv/assets
Package assets is generated by go.chromium.org/luci/tools/cmd/assets.
Package assets is generated by go.chromium.org/luci/tools/cmd/assets.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL