This change temporarily disables Pylint. Assuming it is on the path, and furthermore that the one on the path runs under 2.7, simply won't work. See pulumi/pulumi#1007 for details; it also tracks reenabling.
30 lines
1.2 KiB
Makefile
30 lines
1.2 KiB
Makefile
PROJECT_NAME := Pulumi Python SDK
|
|
LANGHOST_PKG := github.com/pulumi/pulumi/sdk/python/cmd/pulumi-language-python
|
|
VERSION := $(shell git describe --tags --dirty 2>/dev/null | sed "s/v//" | sed "s/-/+/" | sed "s/-/./g")
|
|
|
|
GOMETALINTERBIN := gometalinter
|
|
GOMETALINTER := ${GOMETALINTERBIN} --config=../../Gometalinter.json
|
|
|
|
include ../../build/common.mk
|
|
|
|
ensure::
|
|
$(PIP) install --user --upgrade -r requirements.txt
|
|
|
|
lint::
|
|
$(GOMETALINTER) ./cmd/pulumi-language-python/... | sort ; exit $${PIPESTATUS[0]}
|
|
$(GOMETALINTER) ./pkg/... | sort ; exit $${PIPESTATUS[0]}
|
|
|
|
build::
|
|
cd ./lib/ && $(PYTHON) setup.py clean --all 2>/dev/null
|
|
rm -rf ./bin/ && cp -R ./lib/. ./bin/
|
|
sed -i.bak "s/\$${VERSION}/$(VERSION)/g" ./bin/setup.py && rm ./bin/setup.py.bak
|
|
cd ./bin/ && $(PYTHON) setup.py build bdist_wheel --universal
|
|
go install -ldflags "-X github.com/pulumi/pulumi/sdk/python/pkg/version.Version=${VERSION}" ${LANGHOST_PKG}
|
|
|
|
install::
|
|
cd ./bin/ && $(PYTHON) setup.py install --user --force --prefix=
|
|
cp ./cmd/pulumi-language-python-exec "$(PULUMI_BIN)"
|
|
GOBIN=$(PULUMI_BIN) go install \
|
|
-ldflags "-X github.com/pulumi/pulumi/sdk/python/pkg/version.Version=${VERSION}" ${LANGHOST_PKG}
|
|
|
|
test_fast::
|