Skip to content

Commit b019bc5

Browse files
committed
Use Python 3
Use `python3` and `pip3` explicitly, as we now depend on Python 3.
1 parent 6450e28 commit b019bc5

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

build/common.mk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ ifeq ($(PULUMI_ROOT),)
101101
PULUMI_ROOT:=/opt/pulumi
102102
endif
103103

104+
# Use Python 3 explicitly vs expecting that `python` will resolve to a python 3
105+
# runtime.
106+
PYTHON ?= python3
107+
PIP ?= pip3
108+
104109
PULUMI_BIN := $(PULUMI_ROOT)/bin
105110
PULUMI_NODE_MODULES := $(PULUMI_ROOT)/node_modules
106111

sdk/python/Makefile

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,6 @@ PROJECT_NAME := Pulumi Python SDK
22
LANGHOST_PKG := github.com/pulumi/pulumi/sdk/python/cmd/pulumi-language-python
33
VERSION := $(shell ../../scripts/get-py-version)
44

5-
ifeq ($(PYTHON),)
6-
PYTHON := python
7-
endif
8-
9-
ifeq ($(PIP),)
10-
PIP := pip
11-
endif
12-
135
PYENV := ./env
146
PYENVSRC := $(PYENV)/src
157

0 commit comments

Comments
 (0)