import sys import os from RLTest import Defaults Defaults.decode_responses = True try: sys.path.insert( 0, os.path.join(os.path.dirname(__file__), "../../deps/readies")) import paella except: pass ONLY_STABLE = os.getenv('ONLY_STABLE', '0') == '1' SANITIZER = os.getenv('SANITIZER', '') VALGRIND = os.getenv('VALGRIND', '0') == '1' CODE_COVERAGE = os.getenv('CODE_COVERAGE', '0') == '1' OSNICK = paella.Platform().osnick
help='tensorflow version') parser.add_argument('--variant', default=VARIANT, help='build variant') parser.add_argument('--dest', default='dest', help='destination directory') parser.add_argument('-n', '--nop', action="store_true", help='no operation') args = parser.parse_args() #---------------------------------------------------------------------------------------------- tensorflow = Path(args.root).resolve() dest = Path(args.dest).resolve() #---------------------------------------------------------------------------------------------- tf_build = args.variant platform = paella.Platform() tf_os = platform.os if tf_os == 'macos': tf_os = 'darwin' tf_arch = platform.arch if tf_arch == 'x64': tf_arch = 'x86_64' elif tf_arch == 'arm64v8': tf_arch = 'arm64' tf_ver = args.version #----------------------------------------------------------------------------------------------
import sys import os from RLTest import Defaults if sys.version_info > (3, 0): Defaults.decode_responses = True try: sys.path.insert(0, os.path.join(os.path.dirname(__file__), "../../deps/readies")) import paella except: pass ONLY_STABLE = os.getenv('ONLY_STABLE', '0') == '1' SANITIZER = os.getenv('SANITIZER', '') VALGRIND = os.getenv('VALGRIND', '0') == '1' CODE_COVERAGE = os.getenv('CODE_COVERAGE', '0') == '1' OSNICK = paella.Platform().osnick OS = paella.Platform().os ARCH = paella.Platform().arch