2011-10-31 14:56:08 -07:00
|
|
|
ovstest_pyfiles = \
|
|
|
|
python/ovstest/__init__.py \
|
|
|
|
python/ovstest/args.py \
|
|
|
|
python/ovstest/rpcserver.py \
|
|
|
|
python/ovstest/tcp.py \
|
2012-06-28 15:52:40 -07:00
|
|
|
python/ovstest/tests.py \
|
2011-10-31 14:56:08 -07:00
|
|
|
python/ovstest/udp.py \
|
2012-03-29 19:03:08 -07:00
|
|
|
python/ovstest/util.py \
|
|
|
|
python/ovstest/vswitch.py
|
2011-10-31 14:56:08 -07:00
|
|
|
|
2010-08-25 10:26:40 -07:00
|
|
|
ovs_pyfiles = \
|
|
|
|
python/ovs/__init__.py \
|
2018-04-12 19:24:27 -05:00
|
|
|
python/ovs/compat/__init__.py \
|
|
|
|
python/ovs/compat/sortedcontainers/__init__.py \
|
|
|
|
python/ovs/compat/sortedcontainers/sortedlist.py \
|
|
|
|
python/ovs/compat/sortedcontainers/sorteddict.py \
|
|
|
|
python/ovs/compat/sortedcontainers/sortedset.py \
|
2010-08-25 10:26:40 -07:00
|
|
|
python/ovs/daemon.py \
|
2016-08-02 17:45:41 +00:00
|
|
|
python/ovs/fcntl_win.py \
|
2010-08-25 10:26:40 -07:00
|
|
|
python/ovs/db/__init__.py \
|
2018-04-12 19:24:27 -05:00
|
|
|
python/ovs/db/custom_index.py \
|
2010-08-25 10:26:40 -07:00
|
|
|
python/ovs/db/data.py \
|
|
|
|
python/ovs/db/error.py \
|
|
|
|
python/ovs/db/idl.py \
|
|
|
|
python/ovs/db/parser.py \
|
|
|
|
python/ovs/db/schema.py \
|
|
|
|
python/ovs/db/types.py \
|
|
|
|
python/ovs/fatal_signal.py \
|
|
|
|
python/ovs/json.py \
|
|
|
|
python/ovs/jsonrpc.py \
|
|
|
|
python/ovs/ovsuuid.py \
|
|
|
|
python/ovs/poller.py \
|
|
|
|
python/ovs/process.py \
|
|
|
|
python/ovs/reconnect.py \
|
|
|
|
python/ovs/socket_util.py \
|
|
|
|
python/ovs/stream.py \
|
|
|
|
python/ovs/timeval.py \
|
2012-05-14 11:26:36 -07:00
|
|
|
python/ovs/unixctl/__init__.py \
|
|
|
|
python/ovs/unixctl/client.py \
|
|
|
|
python/ovs/unixctl/server.py \
|
2012-02-16 19:15:01 -08:00
|
|
|
python/ovs/util.py \
|
2012-02-29 17:20:03 -08:00
|
|
|
python/ovs/version.py \
|
2017-01-03 20:10:49 +00:00
|
|
|
python/ovs/vlog.py \
|
|
|
|
python/ovs/winutils.py
|
2015-02-19 10:59:12 -08:00
|
|
|
# These python files are used at build time but not runtime,
|
|
|
|
# so they are not installed.
|
|
|
|
EXTRA_DIST += \
|
|
|
|
python/build/__init__.py \
|
2017-11-20 09:41:42 -08:00
|
|
|
python/build/nroff.py \
|
|
|
|
python/build/soutil.py
|
2015-02-19 10:59:12 -08:00
|
|
|
|
2015-04-10 14:57:00 -05:00
|
|
|
# PyPI support.
|
|
|
|
EXTRA_DIST += \
|
2018-04-12 19:24:27 -05:00
|
|
|
python/ovs/compat/sortedcontainers/LICENSE \
|
2015-04-10 14:57:00 -05:00
|
|
|
python/README.rst \
|
|
|
|
python/setup.py
|
|
|
|
|
2016-06-08 08:55:14 -05:00
|
|
|
# C extension support.
|
|
|
|
EXTRA_DIST += python/ovs/_json.c
|
|
|
|
|
2012-02-28 16:28:08 -08:00
|
|
|
PYFILES = $(ovs_pyfiles) python/ovs/dirs.py $(ovstest_pyfiles)
|
|
|
|
EXTRA_DIST += $(PYFILES)
|
|
|
|
PYCOV_CLEAN_FILES += $(PYFILES:.py=.py,cover)
|
2010-08-25 10:26:40 -07:00
|
|
|
|
2015-12-21 20:24:34 -05:00
|
|
|
FLAKE8_PYFILES += \
|
2018-04-12 19:24:27 -05:00
|
|
|
$(filter-out python/ovs/compat/% python/ovs/dirs.py,$(PYFILES)) \
|
2015-12-21 20:24:34 -05:00
|
|
|
python/setup.py \
|
|
|
|
python/build/__init__.py \
|
|
|
|
python/build/nroff.py \
|
|
|
|
python/ovs/dirs.py.template
|
|
|
|
|
2010-08-25 10:26:40 -07:00
|
|
|
if HAVE_PYTHON
|
2011-10-31 14:56:08 -07:00
|
|
|
nobase_pkgdata_DATA = $(ovs_pyfiles) $(ovstest_pyfiles)
|
2010-08-25 10:26:40 -07:00
|
|
|
ovs-install-data-local:
|
|
|
|
$(MKDIR_P) python/ovs
|
2012-08-02 16:01:49 -07:00
|
|
|
sed \
|
|
|
|
-e '/^##/d' \
|
|
|
|
-e 's,[@]pkgdatadir[@],$(pkgdatadir),g' \
|
|
|
|
-e 's,[@]RUNDIR[@],$(RUNDIR),g' \
|
|
|
|
-e 's,[@]LOGDIR[@],$(LOGDIR),g' \
|
|
|
|
-e 's,[@]bindir[@],$(bindir),g' \
|
|
|
|
-e 's,[@]sysconfdir[@],$(sysconfdir),g' \
|
|
|
|
-e 's,[@]DBDIR[@],$(DBDIR),g' \
|
|
|
|
< $(srcdir)/python/ovs/dirs.py.template \
|
2010-11-29 12:28:26 -08:00
|
|
|
> python/ovs/dirs.py.tmp
|
2010-08-25 10:26:40 -07:00
|
|
|
$(MKDIR_P) $(DESTDIR)$(pkgdatadir)/python/ovs
|
|
|
|
$(INSTALL_DATA) python/ovs/dirs.py.tmp $(DESTDIR)$(pkgdatadir)/python/ovs/dirs.py
|
|
|
|
rm python/ovs/dirs.py.tmp
|
2015-04-10 14:57:00 -05:00
|
|
|
|
|
|
|
python-sdist: $(srcdir)/python/ovs/version.py $(ovs_pyfiles) python/ovs/dirs.py
|
|
|
|
(cd python/ && $(PYTHON) setup.py sdist)
|
|
|
|
|
|
|
|
pypi-upload: $(srcdir)/python/ovs/version.py $(ovs_pyfiles) python/ovs/dirs.py
|
|
|
|
(cd python/ && $(PYTHON) setup.py sdist upload)
|
2011-06-13 09:37:09 -07:00
|
|
|
else
|
|
|
|
ovs-install-data-local:
|
|
|
|
@:
|
2010-08-25 10:26:40 -07:00
|
|
|
endif
|
|
|
|
install-data-local: ovs-install-data-local
|
|
|
|
|
2011-08-25 10:19:23 -07:00
|
|
|
UNINSTALL_LOCAL += ovs-uninstall-local
|
2010-08-25 10:26:40 -07:00
|
|
|
ovs-uninstall-local:
|
|
|
|
rm -f $(DESTDIR)$(pkgdatadir)/python/ovs/dirs.py
|
2012-02-29 17:20:03 -08:00
|
|
|
|
|
|
|
ALL_LOCAL += $(srcdir)/python/ovs/version.py
|
|
|
|
$(srcdir)/python/ovs/version.py: config.status
|
2014-09-29 14:34:11 -07:00
|
|
|
$(AM_V_GEN)$(ro_shell) > $(@F).tmp && \
|
|
|
|
echo 'VERSION = "$(VERSION)"' >> $(@F).tmp && \
|
2012-03-12 10:34:22 -07:00
|
|
|
if cmp -s $(@F).tmp $@; then touch $@; rm $(@F).tmp; else mv $(@F).tmp $@; fi
|
2012-08-02 16:01:49 -07:00
|
|
|
|
|
|
|
ALL_LOCAL += $(srcdir)/python/ovs/dirs.py
|
|
|
|
$(srcdir)/python/ovs/dirs.py: python/ovs/dirs.py.template
|
2014-09-29 14:34:11 -07:00
|
|
|
$(AM_V_GEN)sed \
|
2012-08-02 16:01:49 -07:00
|
|
|
-e '/^##/d' \
|
|
|
|
-e 's,[@]pkgdatadir[@],/usr/local/share/openvswitch,g' \
|
|
|
|
-e 's,[@]RUNDIR[@],/var/run,g' \
|
|
|
|
-e 's,[@]LOGDIR[@],/usr/local/var/log,g' \
|
|
|
|
-e 's,[@]bindir[@],/usr/local/bin,g' \
|
|
|
|
-e 's,[@]sysconfdir[@],/usr/local/etc,g' \
|
|
|
|
-e 's,[@]DBDIR[@],/usr/local/etc/openvswitch,g' \
|
2014-09-29 14:34:11 -07:00
|
|
|
< $? > $@.tmp && \
|
2012-08-02 16:01:49 -07:00
|
|
|
mv $@.tmp $@
|
2015-06-10 09:04:23 -07:00
|
|
|
EXTRA_DIST += python/ovs/dirs.py.template
|