hundreds-breakfast-49010
02/04/2020, 9:29 PM./pants repl <python_target>
to populate the repl's namespace with symbols define in the specified target?aloof-angle-91616
02/04/2020, 9:30 PMimport
themhundreds-breakfast-49010
02/04/2020, 9:30 PM./pants repl src/python/pants/engine:fs
I still need to import fs
to have access to data structures defined there?aloof-angle-91616
02/04/2020, 9:37 PMimport pants.engine.fs
hundreds-breakfast-49010
02/04/2020, 9:49 PMaloof-angle-91616
02/04/2020, 9:50 PMhundreds-breakfast-49010
02/04/2020, 9:51 PMaloof-angle-91616
02/04/2020, 9:52 PMhundreds-breakfast-49010
02/04/2020, 9:53 PMaloof-angle-91616
02/04/2020, 9:53 PMhundreds-breakfast-49010
02/04/2020, 9:53 PMaloof-angle-91616
02/04/2020, 9:54 PMhundreds-breakfast-49010
02/04/2020, 9:54 PMpython_repl.py
the setup_repl_session
method makes a defualt PexInfo and then calls create_pex
with italoof-angle-91616
02/04/2020, 9:55 PMself.create_pex()
in PythonExecutionTaskBase
will create a pex file which merges those twohundreds-breakfast-49010
02/04/2020, 9:56 PMaloof-angle-91616
02/04/2020, 9:56 PMhundreds-breakfast-49010
02/04/2020, 9:57 PMaloof-angle-91616
02/04/2020, 9:58 PM.add_sources_from()
method from PexBuildUtil
witty-crayon-22786
02/04/2020, 10:27 PMhundreds-father-404
02/04/2020, 10:49 PMimport re
and import pathlib
happy-kitchen-89482
02/05/2020, 12:47 AMshell_plus
extension does this to import all your models) but this is not required for feature parity with v1