Packages: added Python 3 support on Amazon Linux 2 (LTS).
This commit is contained in:
@@ -91,7 +91,8 @@ endif
|
|||||||
|
|
||||||
ifeq ($(OSVER), amazonlinux2)
|
ifeq ($(OSVER), amazonlinux2)
|
||||||
include Makefile.php
|
include Makefile.php
|
||||||
include Makefile.python
|
include Makefile.python27
|
||||||
|
include Makefile.python37
|
||||||
include Makefile.go
|
include Makefile.go
|
||||||
include Makefile.perl
|
include Makefile.perl
|
||||||
include Makefile.jsc-common
|
include Makefile.jsc-common
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ ifneq (,$(findstring $(OSVER),opensuse-leap opensuse-tumbleweed sles))
|
|||||||
BUILD_DEPENDS_python27= python-devel
|
BUILD_DEPENDS_python27= python-devel
|
||||||
else ifneq (,$(findstring $(OSVER),fedora centos8))
|
else ifneq (,$(findstring $(OSVER),fedora centos8))
|
||||||
BUILD_DEPENDS_python27= python2-devel
|
BUILD_DEPENDS_python27= python2-devel
|
||||||
else ifneq (,$(findstring $(OSVER),centos7))
|
else ifneq (,$(findstring $(OSVER),centos7 amazonlinux2))
|
||||||
BUILD_DEPENDS_python27= python-devel
|
BUILD_DEPENDS_python27= python-devel
|
||||||
else
|
else
|
||||||
BUILD_DEPENDS_python27= python27-devel
|
BUILD_DEPENDS_python27= python27-devel
|
||||||
@@ -26,7 +26,7 @@ endif
|
|||||||
BUILD_DEPENDS+= $(BUILD_DEPENDS_python27)
|
BUILD_DEPENDS+= $(BUILD_DEPENDS_python27)
|
||||||
|
|
||||||
define MODULE_DEFINITIONS_python27
|
define MODULE_DEFINITIONS_python27
|
||||||
%if (0%{?rhel} == 7)
|
%if (0%{?rhel} == 7) || (0%{?amzn} == 2)
|
||||||
Obsoletes: unit-python
|
Obsoletes: unit-python
|
||||||
%endif
|
%endif
|
||||||
endef
|
endef
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ MODULE_INSTARGS_python37= python3.7-install
|
|||||||
MODULE_SOURCES_python37= unit.example-python-app \
|
MODULE_SOURCES_python37= unit.example-python-app \
|
||||||
unit.example-python37-config
|
unit.example-python37-config
|
||||||
|
|
||||||
ifneq (,$(findstring $(OSVER),opensuse-tumbleweed sles fedora))
|
ifneq (,$(findstring $(OSVER),opensuse-tumbleweed sles fedora amazonlinux2))
|
||||||
BUILD_DEPENDS_python37= python3-devel
|
BUILD_DEPENDS_python37= python3-devel
|
||||||
else
|
else
|
||||||
BUILD_DEPENDS_python37= python37-devel
|
BUILD_DEPENDS_python37= python37-devel
|
||||||
|
|||||||
Reference in New Issue
Block a user