@property
  def artifact_cache_dir(self):
    return (self.get_options().artifact_cache_dir or
            os.path.join(self.scratch_dir, 'artifacts'))
Note that this is unrelated to the general pants artifact cache.
dataset/ETHPy150Open pantsbuild/pants/src/python/pants/backend/python/python_setup.py/PythonSetup.artifact_cache_dir