Skip to content

Commit

Permalink
Support install_only_stripped PBS flavor. (#77)
Browse files Browse the repository at this point in the history
Closes #76
  • Loading branch information
jsirois authored Jul 31, 2024
1 parent 140e491 commit bb92f7f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Release Notes

## 0.5.0

Add support to the PythonBuildStandalone interpreter provider for the new `install_only_stripped`
distribution flavor introduced in the [20240726 PBS release](
https://github.com/indygreg/python-build-standalone/releases/tag/20240726) and use this flavor to
ship smaller science fat binaries.

## 0.4.3

Fix science URL fetching code to gracefully ignore a `~/.netrc` that is a directory when configuring
Expand Down
3 changes: 2 additions & 1 deletion lift.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ description = "Ship your interpreted executables using science."
[[lift.interpreters]]
id = "cpython"
provider = "PythonBuildStandalone"
release = "20240713"
release = "20240726"
version = "3.12.4"
flavor = "install_only_stripped"
# By default science ships as a "thin" scie that fetches CPython 3.12 on first run.
# We use `science lift --invert-lazy cpython ...` when producing "fat" scies.
lazy = true
Expand Down
2 changes: 1 addition & 1 deletion science/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

from packaging.version import Version

__version__ = "0.4.3"
__version__ = "0.5.0"

VERSION = Version(__version__)
4 changes: 2 additions & 2 deletions science/providers/python_build_standalone.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class Config:
metadata=metadata(
"""The flavor of the Python Standalone Builds release to use.
Currently only accepts 'install_only' which is the default.
Currently only accepts 'install_only' and 'install_only_stripped'.
"""
),
)
Expand Down Expand Up @@ -296,7 +296,7 @@ def distribution(self, platform: Platform) -> Distribution | None:
)
placeholders = {}
match self.flavor:
case "install_only":
case "install_only" | "install_only_stripped":
match platform:
case Platform.Windows_x86_64:
placeholders[Identifier("python")] = "python\\python.exe"
Expand Down

0 comments on commit bb92f7f

Please sign in to comment.