mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Merge pull request #717 from pre-commit/nodeenv_clean_src
Use --clean-src for nodeenv
This commit is contained in:
commit
ac3a37d1a0
1 changed files with 3 additions and 1 deletions
|
|
@ -55,7 +55,9 @@ def install_environment(prefix, version, additional_dependencies):
|
||||||
if sys.platform == 'win32': # pragma: no cover
|
if sys.platform == 'win32': # pragma: no cover
|
||||||
envdir = '\\\\?\\' + os.path.normpath(envdir)
|
envdir = '\\\\?\\' + os.path.normpath(envdir)
|
||||||
with clean_path_on_failure(envdir):
|
with clean_path_on_failure(envdir):
|
||||||
cmd = [sys.executable, '-m', 'nodeenv', '--prebuilt', envdir]
|
cmd = [
|
||||||
|
sys.executable, '-mnodeenv', '--prebuilt', '--clean-src', envdir,
|
||||||
|
]
|
||||||
if version != 'default':
|
if version != 'default':
|
||||||
cmd.extend(['-n', version])
|
cmd.extend(['-n', version])
|
||||||
cmd_output(*cmd)
|
cmd_output(*cmd)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue