Fix OOT incompatible recipes (#4937)

This commit is contained in:
Gyeongjae Choi 2024-07-16 22:09:20 +09:00 committed by GitHub
parent 50ffb0e847
commit 7c771fa633
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 31 additions and 3 deletions

View File

@ -10,7 +10,11 @@ version = "1.0.0"
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.sdist]
ignore-vcs = true
[tool.hatch.build.targets.wheel]
ignore-vcs = true
include = [
"_hashlib.so",
]

View File

@ -10,7 +10,11 @@ version = "1.0.0"
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.sdist]
ignore-vcs = true
[tool.hatch.build.targets.wheel]
ignore-vcs = true
include = [
"lzma.py",
"_lzma.so",

View File

@ -10,7 +10,11 @@ version = "1.0.0"
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.sdist]
ignore-vcs = true
[tool.hatch.build.targets.wheel]
ignore-vcs = true
include = [
"_pydecimal.py",
]

View File

@ -10,7 +10,11 @@ version = "1.0.0"
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.sdist]
ignore-vcs = true
[tool.hatch.build.targets.wheel]
ignore-vcs = true
include = [
"pydoc_data/",
]

View File

@ -38,7 +38,7 @@ def test_keyboard_input():
from auditwheel_emscripten import get_imports
dist_dir = Path(__file__).parent / "dist"
dist_dir = Path(pytest.pyodide_dist_dir) # type: ignore[attr-defined]
wheel_path = next(dist_dir.glob("pygame_ce-*.whl"))
assert wheel_path.exists()
all_libs = get_imports(wheel_path)

View File

@ -19,6 +19,6 @@ build:
echo PYTHONPATH: $PYTHONPATH
echo _PYTHON_HOST_PLATFORM: $_PYTHON_HOST_PLATFORM
cflags: |
-I$(PYODIDE_ROOT)/packages/sharedlib-test/src/include
-I$(PKGDIR)/../sharedlib-test/src/include
ldflags: |
$(PYODIDE_ROOT)/packages/sharedlib-test/build/sharedlib-test-1.0/dist/sharedlib-test.so
$(PKGDIR)/../sharedlib-test/build/sharedlib-test-1.0/dist/sharedlib-test.so

View File

@ -10,7 +10,11 @@ version = "1.0.0"
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.sdist]
ignore-vcs = true
[tool.hatch.build.targets.wheel]
ignore-vcs = true
include = [
"_sqlite3.so",
"sqlite3/",

View File

@ -10,7 +10,11 @@ version = "1.0.0"
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.sdist]
ignore-vcs = true
[tool.hatch.build.targets.wheel]
ignore-vcs = true
include = [
"_ssl.so",
"ssl.py",

View File

@ -10,7 +10,11 @@ version = "1.0.0"
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.sdist]
ignore-vcs = true
[tool.hatch.build.targets.wheel]
ignore-vcs = true
include = [
"_test*.so",
"_ctypes_test.so",