Skip to content

Commit 6fba855

Browse files
committed
changes for arma
1 parent 5b65275 commit 6fba855

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

packages/st2/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ else
4848
endif
4949

5050
# Moved from top of file to handle when only py2 or py3 available
51-
ST2PKG_VERSION ?= $(shell $(PYTHON_BINARY) python3 -c "from $(ST2_COMPONENT) import __version__; print(__version__),")
51+
ST2PKG_VERSION ?= $(shell $(PYTHON_BINARY) -c "from $(ST2_COMPONENT) import __version__; print(__version__),")
5252

5353
# Note: We dynamically obtain the version, this is required because dev
5454
# build versions don't store correct version identifier in __init__.py
@@ -144,7 +144,7 @@ wheelhouse: .build-runners .stamp-wheelhouse
144144
cat requirements.txt
145145
# Try to install wheels 2x in case the first one fails
146146
$(PIP_BINARY) wheel --wheel-dir=$(WHEELDIR) --find-links=$(WHEELDIR) -r requirements.txt || \
147-
$(PIP_BINARY) wheel --wheel-dir=$(WHEELDIR) --find-links=$(WHEELDIR) -r requirements.txt
147+
$(PIP_BINARY) wheel --wheel-dir=$(WHEELDIR) --find-links=$(WHEELDIR) -r requirements.txt
148148
touch $@
149149

150150
.build-runners:

packages/st2/component.makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ wheelhouse: .stamp-wheelhouse
7979
cat requirements.txt
8080
# Try to install wheels 2x in case the first one fails
8181
$(PIP_BINARY) wheel --wheel-dir=$(WHEELDIR) --find-links=$(WHEELDIR) -r requirements.txt || \
82-
$(PIP_BINARY) wheel --wheel-dir=$(WHEELDIR) --find-links=$(WHEELDIR) -r requirements.txt
82+
$(PIP_BINARY) wheel --wheel-dir=$(WHEELDIR) --find-links=$(WHEELDIR) -r requirements.txt
8383
touch $@
8484

8585
bdist_wheel: .stamp-bdist_wheel
@@ -88,9 +88,10 @@ bdist_wheel: .stamp-bdist_wheel
8888
# We need to install these python packages to handle rpmbuild 4.14 in EL8
8989
ifeq ($(EL_VERSION),8)
9090
$(PIP_BINARY) install wheel setuptools virtualenv
91-
$(PIP_BINARY) install cryptography --no-binary cryptography
91+
$(PIP_BINARY) install cryptography --no-binary cryptography
9292
endif
93-
$(PYTHON_BINARY) setup.py bdist_wheel --universal -d $(WHEELDIR)
93+
$(PYTHON_BINARY) setup.py bdist_wheel -d $(WHEELDIR) || \
94+
$(PYTHON_BINARY) setup.py bdist_wheel -d $(WHEELDIR)
9495
touch $@
9596

9697
# Note: We want to dynamically inject "st2client" dependency. This way we can

packages/st2/rpm/st2.spec

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
%define svc_user st2
44
%define stanley_user stanley
55
%define packs_group st2packs
6-
%define epoch %(_epoch=`echo $ST2PKG_VERSION | grep -q dev || echo 1`; echo "${_epoch:-0}")
76

87
%include ../rpmspec/st2pkg_toptags.spec
98

@@ -13,13 +12,15 @@ Epoch: %{epoch}
1312

1413
%if 0%{?use_st2python}
1514
Requires: st2python, python-devel, openssl-devel, libffi-devel, git, pam, openssh-server, openssh-clients, bash, setup
15+
%endif
16+
1617
%if 0%{?rhel} == 7
1718
Requires: python-devel, openssl-devel, libffi-devel, git, pam, openssh-server, openssh-clients, bash, setup
19+
%endif
20+
1821
%if 0%{?rhel} >= 8
1922
Requires: python3-devel openssl-devel, libffi-devel, git, pam, openssh-server, openssh-clients, bash, setup
2023
%endif
21-
%endif
22-
%endif
2324

2425
# EL8 requires a few python packages available within 'BUILDROOT' when outside venv
2526
# These are in the el8 packagingbuild dockerfile
@@ -29,7 +30,7 @@ Requires: python3-devel openssl-devel, libffi-devel, git, pam, openssh-server, o
2930
BuildRequires: python3-devel
3031
BuildRequires: python3-setuptools
3132
Requires: python3-virtualenv
32-
BuildRequires: python3-virtualenv
33+
# BuildRequires: python3-virtualenv
3334
%endif # Requires for RHEL 8
3435

3536
Summary: StackStorm all components bundle

scripts/install_os_packages.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ version_delemiter() {
1111
}
1212

1313
install_rpm() {
14+
sudo yum deplist $(lookup_fullnames $@)
1415
sudo yum -y install $(lookup_fullnames $@);
1516
}
1617

0 commit comments

Comments
 (0)