Skip to content

Commit

Permalink
tools: properly remove pycache in release script
Browse files Browse the repository at this point in the history
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
  • Loading branch information
MylesBorins authored and nlf committed Oct 27, 2020
1 parent 46c7f79 commit f8f6e1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ unset CDPATH
set -e

rm -rf release *.tgz || true
rm node_modules/node-gyp/gyp/pylib/gyp/*.pyc || true
rm node_modules/node-gyp/gyp/pylib/gyp/generator/*.pyc || true
rm node_modules/node-gyp/gyp/pylib/gyp/__pycache__/*.pyc || true
rm node_modules/node-gyp/gyp/pylib/gyp/generator/__pycache__/*.pyc || true
mkdir release
node ./bin/npm-cli.js pack --loglevel error >/dev/null
mv *.tgz release
Expand Down

0 comments on commit f8f6e1f

Please sign in to comment.