Skip to content

Commit ef99d39

Browse files
authored
Port "Package unvendored CPython stdlibs in wheel format" (#10)
- pyodide/pyodide#4902
1 parent a71ffcc commit ef99d39

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## Unreleased
99

10+
## [0.27.2] - 2024/07/11
11+
12+
## Changed
13+
14+
- `pyodide py-compile` command now accepts `excludes` flag.
15+
[#9](https://github.com/pyodide/pyodide-build/pull/9)
16+
17+
- `cpython_module` type recipes now should output wheels
18+
[#10](https://github.com/pyodide/pyodide-build/pull/10)
19+
1020
## [0.27.1] - 2024/06/28
1121

1222
## Changed

pyodide_build/buildall.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def __init__(self, pkgdir: Path, config: MetaConfig):
118118

119119
def dist_artifact_path(self) -> Path:
120120
dist_dir = self.pkgdir / "dist"
121-
if self.package_type in ("shared_library", "cpython_module"):
121+
if self.package_type == "shared_library":
122122
candidates = list(dist_dir.glob("*.zip"))
123123
else:
124124
candidates = list(
@@ -730,7 +730,7 @@ def generate_packagedata(
730730
update_package_sha256(pkg_entry, output_dir / pkg.file_name)
731731

732732
pkg_type = pkg.package_type
733-
if pkg_type in ("shared_library", "cpython_module"):
733+
if pkg_type == "shared_library":
734734
# We handle cpython modules as shared libraries
735735
pkg_entry.shared_library = True
736736
pkg_entry.install_dir = (

pyodide_build/buildpkg.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def _build(self) -> None:
193193
# Nothing needs to be done for a static library
194194
pass
195195

196-
elif self.package_type in ("shared_library", "cpython_module"):
196+
elif self.package_type == "shared_library":
197197
# If shared library, we copy .so files to dist_dir
198198
# and create a zip archive of the .so files
199199
shutil.rmtree(self.dist_dir, ignore_errors=True)

0 commit comments

Comments
 (0)