forked from pex-tool/pex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
These are likely better than the Pex PEX for most Pex binary use cases since they include the management extra and run in `--venv` mode as well as providing BusyBox support for equal footing of the `pex`, `pex-tools` and `pex3` top-level commands.
- Loading branch information
Showing
12 changed files
with
193 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Copyright 2024 Pex project contributors. | ||
# Licensed under the Apache License, Version 2.0 (see LICENSE). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Copyright 2024 Pex project contributors. | ||
# Licensed under the Apache License, Version 2.0 (see LICENSE). | ||
|
||
import pkgutil | ||
from dataclasses import dataclass | ||
|
||
import toml | ||
|
||
|
||
@dataclass(frozen=True) | ||
class ScieConfig: | ||
@classmethod | ||
def load(cls, *, pbs_release: str | None = None, python_version: str | None = None): | ||
scie_config = toml.loads(pkgutil.get_data(__name__, "package.toml").decode())["scie"] | ||
return cls( | ||
pbs_release=pbs_release or scie_config["pbs-release"], | ||
python_version=python_version or scie_config["python-version"], | ||
pex_extras=tuple(scie_config["pex-extras"]), | ||
platforms=tuple(scie_config["platforms"]), | ||
) | ||
|
||
pbs_release: str | ||
python_version: str | ||
pex_extras: tuple[str, ...] | ||
platforms: tuple[str, ...] |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.