ambitious-student-81104
07/11/2022, 7:33 PM.lockfile
to something like a requirements.txt
so that I can pip instsall
it so that my VSCode can figure out the dependency?happy-kitchen-89482
07/11/2022, 7:33 PM./pants export ::
for thathappy-kitchen-89482
07/11/2022, 7:33 PMambitious-student-81104
07/11/2022, 7:36 PMexport
actually walks the dependencies; but we would still love for it to just work, because it’s the min-change solution for nowpolite-garden-50641
07/11/2022, 7:36 PMpolite-garden-50641
07/11/2022, 7:38 PMpip install -U "pex==2.1.95"
mkdir -p dist/
sed '/^\/\//d' 3rdparty/python/repo_pex_lock_file > dist/lockfile.json # remove pants comments from lock file
pex3 lock export --platform current dist/lockfile.json > dist/pip_compatible_lock_file.txt
happy-kitchen-89482
07/11/2022, 7:39 PMexport
on just a subset of the repo that has a consistent resolve, you don't have to run it on ::
ambitious-student-81104
07/11/2022, 7:41 PMambitious-student-81104
07/11/2022, 7:41 PMexport
accept regex? i just want to exclude one directory.hundreds-father-404
07/11/2022, 7:45 PM./pants export :: -ignore_me/dir
. We added support for excluding specs by prefixing with -
.
(We also now allow you to have directories match everything in the directory, vs a previous gotcha that dir
really meant dir:dir
)enough-analyst-54434
07/11/2022, 7:48 PMPEX_TOOLS=1 pex --lock my-lock.json --include-tools -- venv create/venv/here
.ambitious-student-81104
07/11/2022, 7:48 PMambitious-student-81104
07/11/2022, 7:50 PMconstraints.txt
file for our monorepoenough-analyst-54434
07/11/2022, 7:50 PMambitious-student-81104
07/11/2022, 7:51 PMenough-analyst-54434
07/11/2022, 7:51 PMambitious-student-81104
07/11/2022, 7:53 PMenough-analyst-54434
07/11/2022, 7:55 PMvenv
options you may wish to use like --pip
to include pip
in the venv so you can mutate it. Just chuck a -h
on the end of the command line to find out more.enough-analyst-54434
07/11/2022, 8:07 PMambitious-student-81104
07/11/2022, 8:49 PM