|
10 | 10 | :license: BSD, see LICENSE for more details.
|
11 | 11 | """
|
12 | 12 |
|
13 |
| -nodeenv_version = '0.7.0' |
| 13 | +nodeenv_version = '0.7.1' |
14 | 14 |
|
15 | 15 | import sys
|
16 | 16 | import os
|
@@ -166,6 +166,12 @@ def parse_args():
|
166 | 166 | action='store_true', default=False,
|
167 | 167 | help='Force installation in a pre-existing directory')
|
168 | 168 |
|
| 169 | + parser.add_option( |
| 170 | + '--make','-m',dest='make_path', |
| 171 | + metavar='MAKE_PATH', |
| 172 | + help='Path to make command', |
| 173 | + default='make') |
| 174 | + |
169 | 175 | options, args = parser.parse_args()
|
170 | 176 |
|
171 | 177 | if not options.list and not options.python_virtualenv:
|
@@ -373,11 +379,13 @@ def install_node(env_dir, src_dir, opt):
|
373 | 379 | if opt.profile:
|
374 | 380 | conf_cmd.append('--profile')
|
375 | 381 |
|
| 382 | + make_cmd = opt.make_path |
| 383 | + |
376 | 384 | callit(conf_cmd, opt.verbose, True, node_src_dir, env)
|
377 | 385 | logger.info('.', extra=dict(continued=True))
|
378 |
| - callit(['make'] + make_opts, opt.verbose, True, node_src_dir, env) |
| 386 | + callit([make_cmd] + make_opts, opt.verbose, True, node_src_dir, env) |
379 | 387 | logger.info('.', extra=dict(continued=True))
|
380 |
| - callit(['make install'], opt.verbose, True, node_src_dir, env) |
| 388 | + callit([make_cmd + ' install'], opt.verbose, True, node_src_dir, env) |
381 | 389 |
|
382 | 390 | logger.info(' done.')
|
383 | 391 |
|
|
0 commit comments