Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bundled dependencies must be downloaded before creating a distributio…

…n tarball.
  • Loading branch information...
commit 60c2de36b17b1885620ba879361a9f7bbef9d136 1 parent ad5e997
Tomaz Muraus Kami authored
Showing with 6 additions and 4 deletions.
  1. +5 −3 SConstruct
  2. +1 −1  build.py
8 SConstruct
View
@@ -181,8 +181,10 @@ dependencies = [
[ env['node_tarball_url'], 'deps/node.tar.gz' ],
]
-download_dependencies = []
+download_dependencies = [ env.Command('.mkdir_deps', [], 'rm -rf deps ; mkdir deps')]
+dependency_paths = [ 'deps/node.tar.gz' ]
for dependency in dependencies:
+ dependency_paths.append(dependency[1])
download_dependencies.append((env.Command('.%s' % (dependency[1]), '', download_file(dependency[0], dependency[1]))))
paths_to_include = [ 'bin', 'lib', 'node_modules', 'other', 'deps']
@@ -225,7 +227,7 @@ env.AlwaysBuild(covcmd)
folder_name = 'cast-%s' % (env['version_string'])
copy_paths = [ 'cp -R %s build' % (path) for path in paths_to_include +
- files_to_include ]
+ files_to_include + dependency_paths]
create_tarball = '%s -zc -f dist/%s --transform \'s,^build,%s,\' %s' % (
tar_bin_path, '%s.tar.gz' % (folder_name),
folder_name, ' '.join(build_to_pack))
@@ -242,7 +244,7 @@ create_distribution_tarball = env.Command('.create-dist', [],
' ; '.join(create_distribution_commands))
env.Alias('download-deps', download_dependencies)
-env.Alias('dist', create_distribution_tarball)
+env.Alias('dist', [ download_dependencies, create_distribution_tarball ])
targets = []
env.Default(targets)
2  build.py
View
@@ -1 +1 @@
-node_tarball_url = 'http://nodejs.org/dist/node-v0.4.6.tar.gz'
+node_tarball_url = 'http://nodejs.org/dist/node-v0.4.7.tar.gz'
Please sign in to comment.
Something went wrong with that request. Please try again.