How can I specify the target python version(s) and...
# general
p
How can I specify the target python version(s) and/or the target resolve(s) that I want
./pants export ::
to use to create virtualenvs? I have two resolves: python-default and pants-plugins. Each has different interpreter constraints: python-default: 3.6 or 3.8 pants-plugins: 3.7 or 3.8 or 3.9 I would like it to create a virtualenv for each supported python major version. Right now, it only creates one for the lowest version available for each resolve (3.6 for the python-default resolve, 3.7 for the pants-plugins resolve)
Hmm. Looks like this is not possible. as it only does one venv per resolve and the only way to create a different venv is to pass a different set of targets. https://github.com/pantsbuild/pants/blob/main/src/python/pants/backend/python/goals/export.py#L212-L218