Add --provided
: like --exclude
, but require the excluded project is available at boot time.
#2426
Labels
--provided
: like --exclude
, but require the excluded project is available at boot time.
#2426
The
--exclude
feature is a very sharp tool. It requires you know to arrange the excluded project is made available to the PEX at runtime through--inherit-path
/PEX_INHERIT_PATH
orPEX_EXTRA_SYS_PATH
in the case where the exclusion was configured to save size / bandwidth when the PEX is being deployed to an environment with pre-installed appropriate projects (the huge ML wheel case).Ideally, Pex would support
--provided
and instead of discovering a missing--excluded
project some time after PEX boot when the import finally triggers (this could be an arbitrary time in the future for dynamic plugin systems or in code with lazy imports in infrequently used code paths.This idea was originally described here: #2097 (comment)
The text was updated successfully, but these errors were encountered: