Sync upstream

This commit is contained in:
Mark Qvist committed 2025-11-24 16:35:53 +01:00
1 parent a470dca73e
commit 7794313202
24 files changed
+25 -15

No files matched your search

+1
View File
@@ -0,0 +1 @@
void PyInit_filterlib(void) { }
+9 -8
View File
@@ -2,7 +2,7 @@ all: release
clean: clean:
@echo Cleaning... @echo Cleaning...
-sudo rm -rf ./build -rm -rf ./build
-rm -rf ./dist -rm -rf ./dist
-rm -r ./LXST/__pycache__ -rm -r ./LXST/__pycache__
@@ -19,19 +19,20 @@ create_symlinks:
-ln -s ../LXST/ ./examples/LXST -ln -s ../LXST/ ./examples/LXST
build_wheel: build_wheel:
cp ./lib/0.4.2/* ./LXST/ cp ./lib/static/* ./LXST/
touch ./skip_extensions
python3 setup.py sdist bdist_wheel python3 setup.py sdist bdist_wheel
-(rm ./LXST/*.so) rm ./skip_extensions
-(rm ./LXST/*.dll) -@(rm ./LXST/*.so)
-(rm ./LXST/*.dylib) -@(rm ./LXST/*.dll)
native_libs: native_libs:
./march_build.sh ./march_build.sh
persist_libs: persist_libs:
-cp ./libs/dev/*.so ./libs/static/ -cp ./lib/dev/*.so ./lib/static/
-cp ./libs/dev/*.dll ./libs/static/ -cp ./lib/dev/*.dll ./lib/static/
-cp ./libs/dev/*.dylib ./libs/static/ -cp ./lib/dev/*.dylib ./lib/static/
release: remove_symlinks build_wheel create_symlinks release: remove_symlinks build_wheel create_symlinks
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+6 -5
View File
@@ -1,12 +1,13 @@
#!/bin/bash #!/bin/bash
docker run --rm -v $(pwd):/io quay.io/pypa/manylinux_2_34_x86_64 /io/build_wheels.sh docker run --rm -v $(pwd):/io quay.io/pypa/manylinux_2_34_x86_64 /io/build_wheels.sh
docker run --rm -v $(pwd):/io quay.io/pypa/musllinux_1_2_x86_64 /io/build_wheels.sh
docker run --rm -v $(pwd):/io quay.io/pypa/manylinux_2_31_armv7l /io/build_wheels.sh
docker run --rm -v $(pwd):/io quay.io/pypa/manylinux_2_34_aarch64 /io/build_wheels.sh docker run --rm -v $(pwd):/io quay.io/pypa/manylinux_2_34_aarch64 /io/build_wheels.sh
docker run --rm -v $(pwd):/io quay.io/pypa/manylinux_2_39_riscv64 /io/build_wheels.sh docker run --rm -v $(pwd):/io quay.io/pypa/manylinux_2_39_riscv64 /io/build_wheels.sh
docker run --rm -v $(pwd):/io quay.io/pypa/musllinux_1_2_aarch64 /io/build_wheels.sh
docker run --rm -v $(pwd):/io quay.io/pypa/musllinux_1_2_armv7l /io/build_wheels.sh # docker run --rm -v $(pwd):/io quay.io/pypa/manylinux_2_31_armv7l /io/build_wheels.sh
docker run --rm -v $(pwd):/io quay.io/pypa/musllinux_1_2_riscv64 /io/build_wheels.sh # docker run --rm -v $(pwd):/io quay.io/pypa/musllinux_1_2_x86_64 /io/build_wheels.sh
# docker run --rm -v $(pwd):/io quay.io/pypa/musllinux_1_2_aarch64 /io/build_wheels.sh
# docker run --rm -v $(pwd):/io quay.io/pypa/musllinux_1_2_armv7l /io/build_wheels.sh
# docker run --rm -v $(pwd):/io quay.io/pypa/musllinux_1_2_riscv64 /io/build_wheels.sh
./fetch_libs.sh ./fetch_libs.sh
+9 -2
View File
@@ -4,12 +4,19 @@ from setuptools.command.build_ext import build_ext
import os import os
import platform import platform
BUILD_EXTENSIONS = True if os.path.isfile("./skip_extensions"): BUILD_EXTENSIONS = False
else: BUILD_EXTENSIONS = True
if BUILD_EXTENSIONS: print(f"Building LXST with native extensions...")
else: print(f"Building LXST without native extensions...")
with open("README.md", "r") as fh: long_description = fh.read() with open("README.md", "r") as fh: long_description = fh.read()
exec(open("LXST/_version.py", "r").read()) exec(open("LXST/_version.py", "r").read())
if BUILD_EXTENSIONS: extensions = [ Extension("LXST.filterlib", sources=["LXST/Filters.c"], include_dirs=["LXST"], language="c"), ] 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 = [] else: extensions = []
packages = setuptools.find_packages(exclude=[]) packages = setuptools.find_packages(exclude=[])