xref: /unit/pkg/deb/Makefile.python38 (revision 1289:63e0bf77604c)
1*1289Sdefan@nginx.comMODULES+=			python38
2*1289Sdefan@nginx.comMODULE_SUFFIX_python38=		python3.8
3*1289Sdefan@nginx.com
4*1289Sdefan@nginx.comMODULE_SUMMARY_python38=	Python 3.8 module for NGINX Unit
5*1289Sdefan@nginx.com
6*1289Sdefan@nginx.comMODULE_VERSION_python38=	$(VERSION)
7*1289Sdefan@nginx.comMODULE_RELEASE_python38=	1
8*1289Sdefan@nginx.com
9*1289Sdefan@nginx.comMODULE_CONFARGS_python38=	python --config=python3.8-config
10*1289Sdefan@nginx.comMODULE_MAKEARGS_python38=	python3.8
11*1289Sdefan@nginx.comMODULE_INSTARGS_python38=	python3.8-install
12*1289Sdefan@nginx.com
13*1289Sdefan@nginx.comMODULE_SOURCES_python38=	unit.example-python-app \
14*1289Sdefan@nginx.com				unit.example-python3.8-config
15*1289Sdefan@nginx.com
16*1289Sdefan@nginx.comBUILD_DEPENDS_python38=	python3.8-dev
17*1289Sdefan@nginx.comBUILD_DEPENDS+=		$(BUILD_DEPENDS_python38)
18*1289Sdefan@nginx.com
19*1289Sdefan@nginx.comMODULE_BUILD_DEPENDS_python38=,python3.8-dev
20*1289Sdefan@nginx.com
21*1289Sdefan@nginx.comdefine MODULE_PREINSTALL_python38
22*1289Sdefan@nginx.com	mkdir -p debian/unit-python3.8/usr/share/doc/unit-python3.8/examples/python-app
23*1289Sdefan@nginx.com	install -m 644 -p debian/unit.example-python-app debian/unit-python3.8/usr/share/doc/unit-python3.8/examples/python-app/wsgi.py
24*1289Sdefan@nginx.com	install -m 644 -p debian/unit.example-python3.8-config debian/unit-python3.8/usr/share/doc/unit-python3.8/examples/unit.config
25*1289Sdefan@nginx.comendef
26*1289Sdefan@nginx.comexport MODULE_PREINSTALL_python38
27*1289Sdefan@nginx.com
28*1289Sdefan@nginx.comdefine MODULE_POST_python38
29*1289Sdefan@nginx.comcat <<BANNER
30*1289Sdefan@nginx.com----------------------------------------------------------------------
31*1289Sdefan@nginx.com
32*1289Sdefan@nginx.comThe $(MODULE_SUMMARY_python38) has been installed.
33*1289Sdefan@nginx.com
34*1289Sdefan@nginx.comTo check out the sample app, run these commands:
35*1289Sdefan@nginx.com
36*1289Sdefan@nginx.com sudo service unit restart
37*1289Sdefan@nginx.com cd /usr/share/doc/unit-$(MODULE_SUFFIX_python38)/examples
38*1289Sdefan@nginx.com sudo curl -X PUT --data-binary @unit.config --unix-socket /var/run/control.unit.sock http://localhost/config
39*1289Sdefan@nginx.com curl http://localhost:8400/
40*1289Sdefan@nginx.com
41*1289Sdefan@nginx.comOnline documentation is available at https://unit.nginx.org
42*1289Sdefan@nginx.com
43*1289Sdefan@nginx.com----------------------------------------------------------------------
44*1289Sdefan@nginx.comBANNER
45*1289Sdefan@nginx.comendef
46*1289Sdefan@nginx.comexport MODULE_POST_python38
47