Skip to content

Commit f8f6e1f

Browse files
MylesBorinsnlf
authored andcommitted
tools: properly remove pycache in release script
Looks like the latest version of node-gyp has the .pyc in a __pycache__ directory rather than with the other python files. There is currently a non-exiting error when running the release script due to this. PR-URL: #2049 Credit: @MylesBorins Close: #2049 Reviewed-by: @nlf
1 parent 46c7f79 commit f8f6e1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/release.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ unset CDPATH
77
set -e
88

99
rm -rf release *.tgz || true
10-
rm node_modules/node-gyp/gyp/pylib/gyp/*.pyc || true
11-
rm node_modules/node-gyp/gyp/pylib/gyp/generator/*.pyc || true
10+
rm node_modules/node-gyp/gyp/pylib/gyp/__pycache__/*.pyc || true
11+
rm node_modules/node-gyp/gyp/pylib/gyp/generator/__pycache__/*.pyc || true
1212
mkdir release
1313
node ./bin/npm-cli.js pack --loglevel error >/dev/null
1414
mv *.tgz release

0 commit comments

Comments
 (0)