mirror of
https://github.com/markqvist/LXST.git
synced 2026-04-27 14:20:39 +00:00
Sync upstream
This commit is contained in:
parent
dd0cced5b0
commit
3fd611ecea
20 changed files with 3610 additions and 75 deletions
10
setup.py
10
setup.py
|
|
@ -6,6 +6,7 @@ import platform
|
|||
|
||||
if os.path.isfile("./skip_extensions"): BUILD_EXTENSIONS = False
|
||||
else: BUILD_EXTENSIONS = True
|
||||
if os.name == "nt": BUILD_EXTENSIONS = False
|
||||
|
||||
if BUILD_EXTENSIONS: print(f"Building LXST with native extensions...")
|
||||
else: print(f"Building LXST without native extensions...")
|
||||
|
|
@ -14,7 +15,6 @@ with open("README.md", "r") as fh: long_description = fh.read()
|
|||
exec(open("LXST/_version.py", "r").read())
|
||||
|
||||
c_sources = ["LXST/Filters.c"]
|
||||
if os.name == "nt": c_sources.append("LXST/Platforms/windows.c")
|
||||
|
||||
if BUILD_EXTENSIONS: extensions = [ Extension("LXST.filterlib", sources=c_sources, include_dirs=["LXST"], language="c"), ]
|
||||
else: extensions = []
|
||||
|
|
@ -35,7 +35,10 @@ package_data = {
|
|||
"Filters.h",
|
||||
"Filters.c",
|
||||
"filterlib*.so",
|
||||
"filterlib*.pyd",
|
||||
"filterlib*.dll",
|
||||
"Platforms/linux/pulseaudio.h",
|
||||
"Platforms/darwin/coreaudio.h",
|
||||
"Platforms/windows/mediafoundation.h",
|
||||
]
|
||||
}
|
||||
|
||||
|
|
@ -64,10 +67,9 @@ setuptools.setup(
|
|||
},
|
||||
install_requires=["rns>=1.0.4",
|
||||
"lxmf>=0.9.3",
|
||||
"soundcard>=0.4.5",
|
||||
"numpy>=2.3.4",
|
||||
"pycodec2>=4.1.0",
|
||||
"audioop-lts>=0.2.1;python_version>='3.13'",
|
||||
"cffi>=1.17.1"],
|
||||
"cffi>=2.0.0"],
|
||||
python_requires=">=3.11",
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue