| package: infra/tools/luci/vpython-native/${platform} |
| description: > |
| vpython is a VirtualEnv Python bootstrap tool. |
| |
| This version includes vpython named as 'python' to allow for transparent |
| replacement of the system python. This makes an especially good pairing |
| with the chromium hermetic python bundle. |
| platforms: |
| - linux-386 |
| - linux-amd64 |
| - linux-arm64 |
| - linux-armv6l |
| - linux-mips64 |
| - linux-ppc64 |
| - linux-ppc64le |
| - linux-s390x |
| - mac-amd64 |
| - windows-386 |
| - windows-amd64 |
| go_build_environ: |
| CGO_ENABLED: |
| darwin: 1 # native Go DNS resolved is buggy on OSX (crbug.com/803673) |
| linux: 0 # to avoid linking to system dynamic libraries |
| windows: 0 # we have no cgo toolchain on Windows |
| go_packages: |
| - infra/tools/vpython |
| root: ../../go/bin |
| copies: |
| - src: vpython${exe_suffix} |
| dst: python${exe_suffix} |
| generate_bat_shim: true |
| posix_symlinks: |
| - src: python |
| dst: python2 |
| - src: python |
| dst: python2.7 |
| # TODO(iannucci): maybe add python3 aliases once vpython respects argv[0] |
| # to select real interpreter. |
| data: |
| - version_file: .versions/python${exe_suffix}.cipd_version |