##// END OF EJS Templates
packaging: use "--python python" for centos7 to avoid explicit "python2"...
Mads Kiilerich -
r43674:90dc0d31 stable
parent child Browse files
Show More
@@ -116,13 +116,13 b' define centos_targets'
116 .PHONY: centos$(1)
116 .PHONY: centos$(1)
117 centos$(1):
117 centos$(1):
118 mkdir -p $$(HGROOT)/packages/centos$(1)
118 mkdir -p $$(HGROOT)/packages/centos$(1)
119 ./buildrpm $$(if $$(filter $(1),$$(CENTOS_WITH_PYTHON_RELEASES)),--withpython)
119 ./buildrpm $$(if $$(filter $(1),$$(CENTOS_WITH_PYTHON_RELEASES)),--withpython,--python python)
120 cp $$(HGROOT)/contrib/packaging/rpmbuild/RPMS/*/* $$(HGROOT)/packages/centos$(1)
120 cp $$(HGROOT)/contrib/packaging/rpmbuild/RPMS/*/* $$(HGROOT)/packages/centos$(1)
121 cp $$(HGROOT)/contrib/packaging/rpmbuild/SRPMS/* $$(HGROOT)/packages/centos$(1)
121 cp $$(HGROOT)/contrib/packaging/rpmbuild/SRPMS/* $$(HGROOT)/packages/centos$(1)
122
122
123 .PHONY: docker-centos$(1)
123 .PHONY: docker-centos$(1)
124 docker-centos$(1):
124 docker-centos$(1):
125 ./dockerrpm centos$(1) $$(if $$(filter $(1),$$(CENTOS_WITH_PYTHON_RELEASES)),--withpython)
125 ./dockerrpm centos$(1) $$(if $$(filter $(1),$$(CENTOS_WITH_PYTHON_RELEASES)),--withpython,--python python)
126
126
127 endef
127 endef
128
128
@@ -14,9 +14,10 b' while [ "$1" ]; do'
14 shift
14 shift
15 BUILD=
15 BUILD=
16 ;;
16 ;;
17 --python3)
17 --python)
18 shift
18 shift
19 PYTHONEXE=python3
19 PYTHONEXE=$1
20 shift
20 ;;
21 ;;
21 --withpython | --with-python)
22 --withpython | --with-python)
22 shift
23 shift
General Comments 0
You need to be logged in to leave comments. Login now