Skip to content

Commit

Permalink
Build scie-pants using science.
Browse files Browse the repository at this point in the history
Instead of using raw `scie-jump` and a hand-crafted JSON lift manifest,
use `science` and a TOML lift mabifest to build `scie-pants`.

The `science` tool and its more friendly interface are the present and
future of end-user scie construction. We convert here and gain a few
things:
+ A manifest format we can comment.
+ Abstraction over platforms and PBS details.
+ Support for embedded build provenanace information for more
  comprehensive black box debugability.
+ A clean path to publishing both "thin" and "fat" binaries and solving
  pantsbuild#154.
  • Loading branch information
jsirois committed May 26, 2023
1 parent 0943208 commit acae181
Show file tree
Hide file tree
Showing 11 changed files with 411 additions and 513 deletions.
115 changes: 0 additions & 115 deletions package/pbt.lift.json

This file was deleted.

57 changes: 57 additions & 0 deletions package/pbt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
[lift]
name = "pbt"
description = """\
Python Build Tool: A BusyBox that provides `python`, `pip`, `pex`, `pex3` and `pex-tools`.\
"""

[[lift.interpreters]]
id = "cpython"
provider = "PythonBuildStandalone"
release = "20230507"
lazy = true
version = "3.8.16"

[[lift.files]]
name = "pex"
type = "blob"
digest = { size = 4098329, fingerprint = "faad51a6a108fba9d40b2a10e82a2646fccbaf8c3d9be47818f4bffae02d94b8" }
source = { url = "https://github.com/pantsbuild/pex/releases/download/v2.1.137/pex", lazy = true }

[[lift.commands]]
name = "pex"
exe = "#{cpython:python}"
args = [
"{pex}"
]

[[lift.commands]]
name = "pex3"
exe = "#{cpython:python}"
args = [
"{pex}"
]

[lift.commands.env.replace]
PEX_SCRIPT = "pex3"

[[lift.commands]]
name = "pex-tools"
exe = "#{cpython:python}"
args = [
"{pex}"
]

[lift.commands.env.replace]
PEX_SCRIPT = "pex-tools"

[[lift.commands]]
name = "pip"
exe = "#{cpython:python}"
args = [
"-m",
"pip"
]

[[lift.commands]]
name = "python"
exe = "#{cpython:python}"

0 comments on commit acae181

Please sign in to comment.