xref: /unit/pkg/deb/Makefile.python310 (revision 1973:bc18f6f39ce3)
1*1973Sdefan@nginx.comMODULES+=			python310
2*1973Sdefan@nginx.comMODULE_SUFFIX_python310=		python3.10
3*1973Sdefan@nginx.com
4*1973Sdefan@nginx.comMODULE_SUMMARY_python310=	Python 3.10 module for NGINX Unit
5*1973Sdefan@nginx.com
6*1973Sdefan@nginx.comMODULE_VERSION_python310=	$(VERSION)
7*1973Sdefan@nginx.comMODULE_RELEASE_python310=	1
8*1973Sdefan@nginx.com
9*1973Sdefan@nginx.comMODULE_CONFARGS_python310=	python --config=python3.10-config
10*1973Sdefan@nginx.comMODULE_MAKEARGS_python310=	python3.10
11*1973Sdefan@nginx.comMODULE_INSTARGS_python310=	python3.10-install
12*1973Sdefan@nginx.com
13*1973Sdefan@nginx.comMODULE_SOURCES_python310=	unit.example-python-app \
14*1973Sdefan@nginx.com				unit.example-python3.10-config
15*1973Sdefan@nginx.com
16*1973Sdefan@nginx.comBUILD_DEPENDS_python310=	python3.10-dev
17*1973Sdefan@nginx.comBUILD_DEPENDS+=		$(BUILD_DEPENDS_python310)
18*1973Sdefan@nginx.com
19*1973Sdefan@nginx.comMODULE_BUILD_DEPENDS_python310=,python3.10-dev
20*1973Sdefan@nginx.com
21*1973Sdefan@nginx.comdefine MODULE_PREINSTALL_python310
22*1973Sdefan@nginx.com	mkdir -p debian/unit-python3.10/usr/share/doc/unit-python3.10/examples/python-app
23*1973Sdefan@nginx.com	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*1973Sdefan@nginx.com	install -m 644 -p debian/unit.example-python3.10-config debian/unit-python3.10/usr/share/doc/unit-python3.10/examples/unit.config
25*1973Sdefan@nginx.comendef
26*1973Sdefan@nginx.comexport MODULE_PREINSTALL_python310
27*1973Sdefan@nginx.com
28*1973Sdefan@nginx.comdefine MODULE_POST_python310
29*1973Sdefan@nginx.comcat <<BANNER
30*1973Sdefan@nginx.com----------------------------------------------------------------------
31*1973Sdefan@nginx.com
32*1973Sdefan@nginx.comThe $(MODULE_SUMMARY_python310) has been installed.
33*1973Sdefan@nginx.com
34*1973Sdefan@nginx.comTo check out the sample app, run these commands:
35*1973Sdefan@nginx.com
36*1973Sdefan@nginx.com sudo service unit restart
37*1973Sdefan@nginx.com cd /usr/share/doc/unit-$(MODULE_SUFFIX_python310)/examples
38*1973Sdefan@nginx.com sudo curl -X PUT --data-binary @unit.config --unix-socket /var/run/control.unit.sock http://localhost/config
39*1973Sdefan@nginx.com curl http://localhost:8400/
40*1973Sdefan@nginx.com
41*1973Sdefan@nginx.comOnline documentation is available at https://unit.nginx.org
42*1973Sdefan@nginx.com
43*1973Sdefan@nginx.com----------------------------------------------------------------------
44*1973Sdefan@nginx.comBANNER
45*1973Sdefan@nginx.comendef
46*1973Sdefan@nginx.comexport MODULE_POST_python310
47