plain-sundown-25537
08/03/2023, 10:52 PMenough-analyst-54434
08/03/2023, 11:11 PM./pants repl <some set of python targets or files or dirs>
then ask sys.executable
.plain-sundown-25537
08/03/2023, 11:25 PMplain-sundown-25537
08/03/2023, 11:26 PM./pants option blahvarianle
broad-processor-92400
08/04/2023, 12:28 AMplain-sundown-25537
08/04/2023, 12:39 AMplain-sundown-25537
08/04/2023, 12:39 AMplain-sundown-25537
08/04/2023, 12:40 AMenough-analyst-54434
08/04/2023, 12:43 AMpants
script or the (not so) new scie-pants binary?plain-sundown-25537
08/04/2023, 12:47 AMbroad-processor-92400
08/04/2023, 12:49 AMpants export
to create a venv with all the dependencies and an appropriate interpreter and then execute the script with that venv activated… having pants execute the script might be better if possible, thoughplain-sundown-25537
08/04/2023, 12:54 AMhappy-kitchen-89482
08/04/2023, 5:19 AMplain-sundown-25537
08/04/2023, 5:53 AMhappy-kitchen-89482
08/04/2023, 8:26 AMpants export
will give you a venv as @broad-processor-92400 mentioned. Or you can just pants run
the script, no?