Skip to content

Commit

Permalink
also include middleware metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
SoulMelody committed Mar 10, 2024
1 parent f0f4c69 commit 1dc1f1d
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions packaging/setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import annotations

import contextlib
import itertools
import os
import pathlib
import sys
Expand Down Expand Up @@ -36,15 +37,24 @@
zip_includes: list[tuple[str, str]] = [
("../libresvip/res", "libresvip/res"),
]
zip_includes.extend(
(
str(resource_file),
str(resource_file.as_posix())[3:],
)
for resource_file in pathlib.Path("../res").rglob("**/*.*")
if resource_file.is_file() and resource_file.suffix not in [".po", ".qml"]
)
zip_includes.extend(
(
str(plugin_info),
str(plugin_info.as_posix())[3:],
)
for plugin_info in pathlib.Path("../libresvip/plugins").rglob("**/*.*")
if plugin_info.is_file()
and not plugin_info.name.endswith(".py")
and not plugin_info.name.endswith(".pyc")
for plugin_info in itertools.chain(
pathlib.Path("../libresvip/middlewares").rglob("**/*.*"),
pathlib.Path("../libresvip/plugins").rglob("**/*.*"),
)
if plugin_info.is_file() and plugin_info.suffix not in [".py", ".pyc"]
)
qml_dirs = ["Qt", "QtCore", "QtQml", "QtQuick"]
qml_base_dir = None
Expand Down

0 comments on commit 1dc1f1d

Please sign in to comment.