Skip to content

Commit 32dd12d

Browse files
committed
updated Makefile
1 parent 501520a commit 32dd12d

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

Makefile

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -53,39 +53,25 @@ ifndef SKIP_PARQUET
5353
endif
5454

5555
.PHONY: build
56-
build: init
56+
build: init python-version
5757
@echo =========================
5858
@echo DevOps Python Tools Build
5959
@echo =========================
6060
@$(MAKE) git-summary
6161

62-
@# executing in sh where type is not available
63-
@#type -P python
64-
which python && python -V || :
65-
which python2 && python2 -V || :
66-
which python3 && python3 -V || :
67-
which pip && pip -V || :
68-
which pip2 && pip2 -V || :
69-
which pip3 && pip3 -V || :
70-
7162
if [ -z "$(CPANM)" ]; then make; exit $$?; fi
7263
$(MAKE) system-packages-python
7364
if type apk 2>/dev/null; then $(MAKE) apk-packages-extra; fi
7465
if type apt-get 2>/dev/null; then $(MAKE) apt-packages-extra; fi
75-
$(MAKE) python
7666

77-
# executing in sh where type is not available
78-
#type -P python
79-
which python
80-
python -V
81-
pip -V
67+
$(MAKE) python
8268

8369
.PHONY: init
8470
init:
8571
git submodule update --init --recursive
8672

8773
.PHONY: python
88-
python:
74+
python: python-version
8975
cd pylib && $(MAKE)
9076
@# don't pull parquet tools in to docker image by default, will bloat it
9177
@# can fetch separately by running 'make parquet-tools' if you really want to

0 commit comments

Comments
 (0)