]> git.proxmox.com Git - ovs.git/blame - python/automake.mk
bump version to 2.15.0+ds1-2+deb11u3.1
[ovs.git] / python / automake.mk
CommitLineData
0be6140a
AA
1ovstest_pyfiles = \
2 python/ovstest/__init__.py \
3 python/ovstest/args.py \
4 python/ovstest/rpcserver.py \
5 python/ovstest/tcp.py \
2d8bdd8f 6 python/ovstest/tests.py \
0be6140a 7 python/ovstest/udp.py \
8d25d9a2
AA
8 python/ovstest/util.py \
9 python/ovstest/vswitch.py
0be6140a 10
99155935
BP
11ovs_pyfiles = \
12 python/ovs/__init__.py \
13973bc4
TW
13 python/ovs/compat/__init__.py \
14 python/ovs/compat/sortedcontainers/__init__.py \
15 python/ovs/compat/sortedcontainers/sortedlist.py \
16 python/ovs/compat/sortedcontainers/sorteddict.py \
17 python/ovs/compat/sortedcontainers/sortedset.py \
99155935 18 python/ovs/daemon.py \
93c43dc0 19 python/ovs/fcntl_win.py \
99155935 20 python/ovs/db/__init__.py \
13973bc4 21 python/ovs/db/custom_index.py \
99155935
BP
22 python/ovs/db/data.py \
23 python/ovs/db/error.py \
24 python/ovs/db/idl.py \
25 python/ovs/db/parser.py \
26 python/ovs/db/schema.py \
27 python/ovs/db/types.py \
28 python/ovs/fatal_signal.py \
29 python/ovs/json.py \
30 python/ovs/jsonrpc.py \
31 python/ovs/ovsuuid.py \
32 python/ovs/poller.py \
33 python/ovs/process.py \
34 python/ovs/reconnect.py \
35 python/ovs/socket_util.py \
36 python/ovs/stream.py \
37 python/ovs/timeval.py \
53cf9963
BP
38 python/ovs/unixctl/__init__.py \
39 python/ovs/unixctl/client.py \
40 python/ovs/unixctl/server.py \
0a68ffd2 41 python/ovs/util.py \
4fb7d814 42 python/ovs/version.py \
f98c8a09
AB
43 python/ovs/vlog.py \
44 python/ovs/winutils.py
7b8c46c8
BP
45# These python files are used at build time but not runtime,
46# so they are not installed.
47EXTRA_DIST += \
48 python/build/__init__.py \
74eaac06
BP
49 python/build/nroff.py \
50 python/build/soutil.py
7b8c46c8 51
77e2b031
TW
52# PyPI support.
53EXTRA_DIST += \
13973bc4 54 python/ovs/compat/sortedcontainers/LICENSE \
77e2b031
TW
55 python/README.rst \
56 python/setup.py
57
c63b04d6
TW
58# C extension support.
59EXTRA_DIST += python/ovs/_json.c
60
79982e90
EJ
61PYFILES = $(ovs_pyfiles) python/ovs/dirs.py $(ovstest_pyfiles)
62EXTRA_DIST += $(PYFILES)
63PYCOV_CLEAN_FILES += $(PYFILES:.py=.py,cover)
99155935 64
115d8719 65FLAKE8_PYFILES += \
13973bc4 66 $(filter-out python/ovs/compat/% python/ovs/dirs.py,$(PYFILES)) \
115d8719
RB
67 python/setup.py \
68 python/build/__init__.py \
69 python/build/nroff.py \
70 python/ovs/dirs.py.template
71
0be6140a 72nobase_pkgdata_DATA = $(ovs_pyfiles) $(ovstest_pyfiles)
99155935
BP
73ovs-install-data-local:
74 $(MKDIR_P) python/ovs
c3bf5498
BP
75 sed \
76 -e '/^##/d' \
d409f500
MG
77 -e 's,[@]pkgdatadir[@],$(pkgdatadir),g' \
78 -e 's,[@]RUNDIR[@],$(RUNDIR),g' \
79 -e 's,[@]LOGDIR[@],$(LOGDIR),g' \
80 -e 's,[@]bindir[@],$(bindir),g' \
81 -e 's,[@]sysconfdir[@],$(sysconfdir),g' \
82 -e 's,[@]DBDIR[@],$(DBDIR),g' \
c3bf5498 83 < $(srcdir)/python/ovs/dirs.py.template \
b43c6fe2 84 > python/ovs/dirs.py.tmp
99155935
BP
85 $(MKDIR_P) $(DESTDIR)$(pkgdatadir)/python/ovs
86 $(INSTALL_DATA) python/ovs/dirs.py.tmp $(DESTDIR)$(pkgdatadir)/python/ovs/dirs.py
87 rm python/ovs/dirs.py.tmp
77e2b031
TW
88
89python-sdist: $(srcdir)/python/ovs/version.py $(ovs_pyfiles) python/ovs/dirs.py
1ca0323e 90 (cd python/ && $(PYTHON3) setup.py sdist)
77e2b031
TW
91
92pypi-upload: $(srcdir)/python/ovs/version.py $(ovs_pyfiles) python/ovs/dirs.py
1ca0323e 93 (cd python/ && $(PYTHON3) setup.py sdist upload)
99155935
BP
94install-data-local: ovs-install-data-local
95
44852fdf 96UNINSTALL_LOCAL += ovs-uninstall-local
99155935
BP
97ovs-uninstall-local:
98 rm -f $(DESTDIR)$(pkgdatadir)/python/ovs/dirs.py
4fb7d814
EJ
99
100ALL_LOCAL += $(srcdir)/python/ovs/version.py
101$(srcdir)/python/ovs/version.py: config.status
ef44aa50
BP
102 $(AM_V_GEN)$(ro_shell) > $(@F).tmp && \
103 echo 'VERSION = "$(VERSION)"' >> $(@F).tmp && \
c95ca86e 104 if cmp -s $(@F).tmp $@; then touch $@; rm $(@F).tmp; else mv $(@F).tmp $@; fi
c3bf5498
BP
105
106ALL_LOCAL += $(srcdir)/python/ovs/dirs.py
107$(srcdir)/python/ovs/dirs.py: python/ovs/dirs.py.template
ef44aa50 108 $(AM_V_GEN)sed \
c3bf5498 109 -e '/^##/d' \
d409f500
MG
110 -e 's,[@]pkgdatadir[@],$(pkgdatadir),g' \
111 -e 's,[@]RUNDIR[@],$(RUNDIR),g' \
112 -e 's,[@]LOGDIR[@],$(LOGDIR),g' \
113 -e 's,[@]bindir[@],$(bindir),g' \
114 -e 's,[@]sysconfdir[@],$(sysconfdir),g' \
115 -e 's,[@]DBDIR[@],$(sysconfdir)/openvswitch,g' \
ef44aa50 116 < $? > $@.tmp && \
c3bf5498 117 mv $@.tmp $@
ab70cd30 118EXTRA_DIST += python/ovs/dirs.py.template
943c4a32 119CLEANFILES += python/ovs/dirs.py