https://pantsbuild.org/ logo
c

calm-balloon-91412

01/26/2020, 9:28 PM
Hi, is there a way to specify 3rdparty libs, some python2 and some python3? also, when pants repl.py 3rdparty/python:somelib -> It opens python2 shell, how can I make it open a python3 shell?
w

witty-crayon-22786

01/27/2020, 6:03 PM
also, when pants repl.py 3rdparty/python:somelib -> It opens python2 shell, how can I make it open a python3 shell?
if you want python3 to be the default, you'd want to set
[python-setup] compatibility
, i think.
if it's just one target, you'd want to set
compatibility
on that target
...and if neither of those work, then please open a bug
c

calm-balloon-91412

01/27/2020, 11:07 PM
I can't specify compatibility for python_requirements,
and I tried to use [python-setup] interpreter_constraints=["CPython>=3.5"]
any idea?:)
3 Views