fierce-park-88503
08/23/2018, 10:53 PM$PEX_PYTHON
appropriately. however, when running ./pants lint
, it seems like pants is still picking up system python. is there some other variable to set for that? or some better way of keeping pants away from system python?enough-analyst-54434
08/24/2018, 1:16 AM$ ./pants options --scope=python-setup
python-setup.artifact_cache_dir = None (from NONE)
python-setup.chroot_cache_dir = None (from NONE)
python-setup.interpreter_cache_dir = None (from NONE)
python-setup.interpreter_constraints = ['CPython>=2.7,<3'] (from HARDCODED)
python-setup.interpreter_search_paths = [] (from HARDCODED)
python-setup.platforms = ['current'] (from HARDCODED)
python-setup.resolver_allow_prereleases = None (from NONE)
python-setup.resolver_blacklist = {} (from HARDCODED)
python-setup.resolver_cache_dir = None (from NONE)
python-setup.resolver_cache_ttl = 315360000 (from HARDCODED)
python-setup.resolver_use_manylinux = True (from HARDCODED)
python-setup.setuptools_version = 33.1.1 (from HARDCODED)
python-setup.wheel_version = 0.29.0 (from HARDCODED)
You probably want to have:
[python-setup]
interpreter_search_paths: [
'/some/osx/path/brew/maybe?',
'/some/ither/osx/path',
]
Unfortunately we don't natively support swithing this based on platform. If linux is CI-only, you can use ./pants --pants-config-files=pants.linux.ini ...
to override or nullify those paths.fierce-park-88503
08/24/2018, 1:31 PMfierce-park-88503
08/24/2018, 1:31 PMenough-analyst-54434
08/24/2018, 1:34 PMfierce-park-88503
08/24/2018, 2:45 PMfierce-park-88503
08/24/2018, 2:46 PMenough-analyst-54434
08/24/2018, 3:08 PMinterpreter_constraints
in the same scope? Maybe CPython>=2.7.11,<3
assuming you're on 2.7 and the wonky OSX python is 2.7.10.fierce-park-88503
08/24/2018, 3:15 PMfierce-park-88503
08/24/2018, 3:16 PMfierce-park-88503
08/24/2018, 3:18 PMinterpreter_constraints: CPython>=2.7.11,<3
in our pants.ini under the [python-setup]
sectionenough-analyst-54434
08/24/2018, 3:21 PMfierce-park-88503
08/24/2018, 3:22 PMenough-analyst-54434
08/24/2018, 3:38 PMenough-analyst-54434
08/24/2018, 3:39 PMenough-analyst-54434
08/24/2018, 3:40 PM./pants options --scope=python-setup --name=interpreter-constraints
to see what pants thinks you're saying.fierce-park-88503
08/24/2018, 3:42 PMfierce-park-88503
08/24/2018, 3:44 PMinterpreter_constraints: CPython>=2.7.11,<3
which I guess is interpreted as an append when the base type is a list? maybe that var changed from a single string to a listfierce-park-88503
08/24/2018, 3:44 PM./pants options
call showed that we were appendingenough-analyst-54434
08/24/2018, 4:03 PM