diff --git a/sky/build/sky_init.py b/sky/build/sky_init.py deleted file mode 100644 index aa1da5ecd6d5249ee4a6e71a429b5363320a1268..0000000000000000000000000000000000000000 --- a/sky/build/sky_init.py +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env python -# Copyright 2015 The Chromium Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -import argparse -import os -import subprocess -import sys - -SKY_BUILD_DIR = os.path.dirname(os.path.abspath(__file__)) -SRC_ROOT = os.path.dirname(os.path.dirname(SKY_BUILD_DIR)) -WORKBENCH = os.path.join(SRC_ROOT, 'sky', 'packages', 'workbench') -DART_SDK = os.path.join(SRC_ROOT, 'third_party', 'dart-sdk', 'dart-sdk', 'bin') -PUB = os.path.join(DART_SDK, 'pub') -PUB_CACHE = os.path.join(SRC_ROOT, "dart-pub-cache") - -def main(): - parser = argparse.ArgumentParser(description='Packaging tool for Sky apps') - parser.add_argument('--touch', type=str) - args = parser.parse_args() - - env = os.environ.copy() - env["PUB_CACHE"] = PUB_CACHE - subprocess.check_call([PUB, 'run', 'sky:init'], cwd=WORKBENCH, env=env) - - if args.touch: - with open(os.path.abspath(args.touch), 'w') as f: - pass - -if __name__ == '__main__': - sys.exit(main()) diff --git a/sky/build/skyx.gni b/sky/build/skyx.gni index c5e5e5e3226cfcf35c05311ec3aad2a517eb76ac..15c1ea36f92bad2d11274896cd1200aef1a72186 100644 --- a/sky/build/skyx.gni +++ b/sky/build/skyx.gni @@ -41,7 +41,6 @@ template("skyx") { ] deps = [ - "//sky/packages/workbench:init", "//sky/tools/sky_snapshot($host_toolchain)", ] diff --git a/sky/packages/workbench/BUILD.gn b/sky/packages/workbench/BUILD.gn deleted file mode 100644 index be852bdbc3f6e81a7f4802f65319fe40d84f38e4..0000000000000000000000000000000000000000 --- a/sky/packages/workbench/BUILD.gn +++ /dev/null @@ -1,16 +0,0 @@ -# Copyright 2015 The Chromium Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -action("init") { - stamp = "$target_gen_dir/sky_init.stamp" - - script = "//sky/build/sky_init.py" - sources = [ "//sky/packages/sky/pubspec.yaml" ] - outputs = [ stamp ] - - args = [ - "--touch", - rebase_path(stamp, root_build_dir), - ] -} diff --git a/sky/tools/skypy/skyserver.py b/sky/tools/skypy/skyserver.py index bf6608b9a179b0364b5c8848fb29e2d3f2934ebd..4db563d5e25150d06efe98ca2d0e0d25c9f65b55 100644 --- a/sky/tools/skypy/skyserver.py +++ b/sky/tools/skypy/skyserver.py @@ -36,7 +36,6 @@ class SkyServer(object): env = os.environ.copy() env["PUB_CACHE"] = PUB_CACHE - subprocess.check_call([PUB, 'run', 'sky:init'], cwd=WORKBENCH_ROOT, env=env) args = [PUB, 'run', 'sky_tools:sky_server', str(self.port)] self.server = subprocess.Popen(args, cwd=WORKBENCH_ROOT, env=env) return self.server.pid