-
-
Notifications
You must be signed in to change notification settings - Fork 649
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
introduce CMake BinaryTool and use it to fully isolate the environmen…
…t when building conan deps
- Loading branch information
1 parent
4fc332c
commit 53a8013
Showing
4 changed files
with
32 additions
and
20 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
src/python/pants/backend/native/subsystems/binaries/cmake.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# coding=utf-8 | ||
# Copyright 2018 Pants project contributors (see CONTRIBUTORS.md). | ||
# Licensed under the Apache License, Version 2.0 (see LICENSE). | ||
|
||
from __future__ import absolute_import, division, print_function, unicode_literals | ||
|
||
import os | ||
|
||
from pants.binaries.binary_tool import NativeTool | ||
from pants.util.memo import memoized_property | ||
|
||
|
||
class CMake(NativeTool): | ||
options_scope = 'cmake' | ||
default_version = '3.9.5' | ||
archive_type = 'tgz' | ||
|
||
@memoized_property | ||
def bin_dir(self): | ||
return os.path.join(self.select(), 'bin') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters