mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-03-14 19:43:42 +00:00
moved python module
This commit is contained in:
@@ -10,7 +10,7 @@ serialize =
|
|||||||
search = VERSION "{current_version}"
|
search = VERSION "{current_version}"
|
||||||
replace = VERSION "{new_version}"
|
replace = VERSION "{new_version}"
|
||||||
|
|
||||||
[bumpversion:file:src/python/setup.py]
|
[bumpversion:file:python/setup.py]
|
||||||
search = version="{current_version}"
|
search = version="{current_version}"
|
||||||
replace = version="{new_version}"
|
replace = version="{new_version}"
|
||||||
|
|
||||||
|
|||||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -5,8 +5,8 @@
|
|||||||
/pkg/arch/v*.tar.gz
|
/pkg/arch/v*.tar.gz
|
||||||
/pkg/arch/ustreamer-*.pkg.tar.xz
|
/pkg/arch/ustreamer-*.pkg.tar.xz
|
||||||
/pkg/arch/ustreamer-*.pkg.tar.zst
|
/pkg/arch/ustreamer-*.pkg.tar.zst
|
||||||
/src/python/build/
|
|
||||||
/build/
|
/build/
|
||||||
|
/python/build/
|
||||||
/config.mk
|
/config.mk
|
||||||
/vgcore.*
|
/vgcore.*
|
||||||
/ustreamer
|
/ustreamer
|
||||||
|
|||||||
10
Makefile
10
Makefile
@@ -7,6 +7,7 @@ PREFIX ?= /usr/local
|
|||||||
MANPREFIX ?= $(PREFIX)/share/man
|
MANPREFIX ?= $(PREFIX)/share/man
|
||||||
|
|
||||||
CC ?= gcc
|
CC ?= gcc
|
||||||
|
PY ?= python3
|
||||||
CFLAGS ?= -O3 -MD
|
CFLAGS ?= -O3 -MD
|
||||||
LDFLAGS ?=
|
LDFLAGS ?=
|
||||||
|
|
||||||
@@ -90,7 +91,7 @@ install: $(USTR) $(DUMP)
|
|||||||
gzip -f $(DESTDIR)$(MANPREFIX)/man1/$(USTR).1
|
gzip -f $(DESTDIR)$(MANPREFIX)/man1/$(USTR).1
|
||||||
gzip -f $(DESTDIR)$(MANPREFIX)/man1/$(DUMP).1
|
gzip -f $(DESTDIR)$(MANPREFIX)/man1/$(DUMP).1
|
||||||
ifneq ($(call optbool,$(WITH_PYTHON)),)
|
ifneq ($(call optbool,$(WITH_PYTHON)),)
|
||||||
cd src/python && python3 setup.py install --prefix=$(PREFIX) --root=$(if $(DESTDIR),$(DESTDIR),/)
|
cd python && $(PY) setup.py install --prefix=$(PREFIX) --root=$(if $(DESTDIR),$(DESTDIR),/)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
@@ -132,8 +133,9 @@ $(BUILD)/%.o: %.c
|
|||||||
|
|
||||||
python:
|
python:
|
||||||
ifneq ($(call optbool,$(WITH_PYTHON)),)
|
ifneq ($(call optbool,$(WITH_PYTHON)),)
|
||||||
cd src/python && python3 setup.py build
|
$(info == PY_BUILD ustreamer-*.so)
|
||||||
ln -sf src/python/build/lib.*/*.so .
|
@ cd python && $(PY) setup.py --quiet build
|
||||||
|
@ ln -sf python/build/lib.*/*.so .
|
||||||
else
|
else
|
||||||
@ true
|
@ true
|
||||||
endif
|
endif
|
||||||
@@ -180,7 +182,7 @@ clean-all: linters clean
|
|||||||
-it $(LINTERS_IMAGE) bash -c "cd src && rm -rf linters/{.tox,.mypy_cache}"
|
-it $(LINTERS_IMAGE) bash -c "cd src && rm -rf linters/{.tox,.mypy_cache}"
|
||||||
clean:
|
clean:
|
||||||
rm -rf pkg/arch/pkg pkg/arch/src pkg/arch/v*.tar.gz pkg/arch/ustreamer-*.pkg.tar.{xz,zst}
|
rm -rf pkg/arch/pkg pkg/arch/src pkg/arch/v*.tar.gz pkg/arch/ustreamer-*.pkg.tar.{xz,zst}
|
||||||
rm -rf $(USTR) $(DUMP) $(BUILD) src/python/build vgcore.* *.sock *.so
|
rm -rf $(USTR) $(DUMP) $(BUILD) python/build vgcore.* *.sock *.so
|
||||||
|
|
||||||
|
|
||||||
.PHONY: python linters
|
.PHONY: python linters
|
||||||
|
|||||||
@@ -24,26 +24,26 @@ commands = cppcheck \
|
|||||||
|
|
||||||
[testenv:flake8]
|
[testenv:flake8]
|
||||||
whitelist_externals = bash
|
whitelist_externals = bash
|
||||||
commands = bash -c 'flake8 --config=linters/flake8.ini tools/*.py' src/python/*.py
|
commands = bash -c 'flake8 --config=linters/flake8.ini tools/*.py' python/*.py
|
||||||
deps =
|
deps =
|
||||||
flake8
|
flake8
|
||||||
flake8-quotes
|
flake8-quotes
|
||||||
|
|
||||||
[testenv:pylint]
|
[testenv:pylint]
|
||||||
whitelist_externals = bash
|
whitelist_externals = bash
|
||||||
commands = bash -c 'pylint --rcfile=linters/pylint.ini --output-format=colorized --reports=no tools/*.py src/python/*.py'
|
commands = bash -c 'pylint --rcfile=linters/pylint.ini --output-format=colorized --reports=no tools/*.py python/*.py'
|
||||||
deps =
|
deps =
|
||||||
pylint
|
pylint
|
||||||
|
|
||||||
[testenv:mypy]
|
[testenv:mypy]
|
||||||
whitelist_externals = bash
|
whitelist_externals = bash
|
||||||
commands = bash -c 'mypy --config-file=linters/mypy.ini tools/*.py src/python/*.py'
|
commands = bash -c 'mypy --config-file=linters/mypy.ini tools/*.py python/*.py'
|
||||||
deps =
|
deps =
|
||||||
mypy
|
mypy
|
||||||
|
|
||||||
[testenv:vulture]
|
[testenv:vulture]
|
||||||
whitelist_externals = bash
|
whitelist_externals = bash
|
||||||
commands = bash -c 'vulture tools/*.py src/python/*.py'
|
commands = bash -c 'vulture tools/*.py python/*.py'
|
||||||
deps =
|
deps =
|
||||||
vulture
|
vulture
|
||||||
|
|
||||||
|
|||||||
@@ -13,8 +13,8 @@
|
|||||||
|
|
||||||
#include <Python.h>
|
#include <Python.h>
|
||||||
|
|
||||||
#include "../libs/tools.h" // Just a header without C-sources
|
#include "../src/libs/tools.h" // Just a header without C-sources
|
||||||
#include "../libs/memsinksh.h" // No sources again
|
#include "../src/libs/memsinksh.h" // No sources again
|
||||||
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
Reference in New Issue
Block a user