Compare commits

..
Author SHA1 Message Date
sisungo 9ffea23234 feat: add package setuptools-py
Signed-off-by: sisungo <[email protected]>
2026-08-19 15:06:52 +08:00
3 changed files with 22 additions and 44 deletions
-1
View File
@@ -117,7 +117,6 @@ def _is_dev_file(ent) -> bool:
or ent.name.endswith(".la")
or ent.name.endswith(".pc")
or ent.name.endswith(".h")
or ent.name.endswith(".hpp")
or ent.name.endswith(".cmake")
or ent.name.endswith(".inc")
or ("Makefile" in ent.name)
+22
View File
@@ -0,0 +1,22 @@
from lib.make import *
from lib import python
python.version("84.0.0")
description("Most extensible Python build backend with support for C/C++ extension modules")
maintainer("sisungo <[email protected]>")
source_url("https://files.pythonhosted.org/packages/6d/44/f5da03a8ef95d369145c5bb53050e7877c9f3d312e128605fd9504829143/setuptools-84.0.0.tar.gz")
python.builddep("$shortcut")
def build():
python.build()
python.install()
on_build(build)
package("setuptools.py")
python.dep("python")
python.use_auto_pack()
-43
View File
@@ -1,43 +0,0 @@
import os
import shutil
from lib.make import *
from lib import cpp, arch
sdk_version = "1.4.357.0"
version(sdk_version)
description("an API and commands for processing SPIR-V modules")
maintainer("sisungo <[email protected]>")
source_url("https://github.com/KhronosGroup/SPIRV-Tools/archive/refs/tags/vulkan-sdk-1.4.357.0.tar.gz")
builddep("shortcut/cmake")
builddep("shortcut/c++")
builddep(f"spirv-headers (={sdk_version}) @{arch.get_target()}")
def build():
cpp.cmake([
f"-DSPIRV-Headers_SOURCE_DIR=/lib/{arch.get_target()}",
"-DCMAKE_CXX_FLAGS=-Wno-error=switch",
f"-DCMAKE_INSTALL_PREFIX={get_prefix('spirv-tools-dev')}",
])
cpp.ninja()
cpp.ninja_install()
try:
os.rename("lib64", "lib")
os.rename("lib32", "lib")
except:
pass
on_build(build)
package("spirv-tools")
dep("libcxx @same-arch")
cpp.use_auto_pack(["bin"])
package("spirv-tools-dev")
dep("spirv-tools (same)")
cpp.use_auto_pack(["lib", "dev"])