xref: /unit/pkg/deb/Makefile.python310 (revision 1973:bc18f6f39ce3)
1MODULES+=			python310
2MODULE_SUFFIX_python310=		python3.10
3
4MODULE_SUMMARY_python310=	Python 3.10 module for NGINX Unit
5
6MODULE_VERSION_python310=	$(VERSION)
7MODULE_RELEASE_python310=	1
8
9MODULE_CONFARGS_python310=	python --config=python3.10-config
10MODULE_MAKEARGS_python310=	python3.10
11MODULE_INSTARGS_python310=	python3.10-install
12
13MODULE_SOURCES_python310=	unit.example-python-app \
14				unit.example-python3.10-config
15
16BUILD_DEPENDS_python310=	python3.10-dev
17BUILD_DEPENDS+=		$(BUILD_DEPENDS_python310)
18
19MODULE_BUILD_DEPENDS_python310=,python3.10-dev
20
21define MODULE_PREINSTALL_python310
22	mkdir -p debian/unit-python3.10/usr/share/doc/unit-python3.10/examples/python-app
23	install -m 644 -p debian/unit.example-python-app debian/unit-python3.10/usr/share/doc/unit-python3.10/examples/python-app/wsgi.py
24	install -m 644 -p debian/unit.example-python3.10-config debian/unit-python3.10/usr/share/doc/unit-python3.10/examples/unit.config
25endef
26export MODULE_PREINSTALL_python310
27
28define MODULE_POST_python310
29cat <<BANNER
30----------------------------------------------------------------------
31
32The $(MODULE_SUMMARY_python310) has been installed.
33
34To check out the sample app, run these commands:
35
36 sudo service unit restart
37 cd /usr/share/doc/unit-$(MODULE_SUFFIX_python310)/examples
38 sudo curl -X PUT --data-binary @unit.config --unix-socket /var/run/control.unit.sock http://localhost/config
39 curl http://localhost:8400/
40
41Online documentation is available at https://unit.nginx.org
42
43----------------------------------------------------------------------
44BANNER
45endef
46export MODULE_POST_python310
47