Skip to content

Commit

Permalink
Cleanup egg-info in configure or release build
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe Ombredanne <[email protected]>
  • Loading branch information
pombredanne committed Jul 30, 2021
1 parent ad8820a commit cea1d29
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
3 changes: 1 addition & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,11 @@ CLEANABLE="
pip-selfcheck.json
src/scancode_toolkit.egg-info
src/scancode_toolkit_mini.egg-info
scancode_toolkit.egg-info
scancode_toolkit_mini.egg-info
SCANCODE_DEV_MODE
man
Scripts"


# extra arguments passed to pip
PIP_EXTRA_ARGS=" "

Expand Down
11 changes: 11 additions & 0 deletions etc/release/scancode-create-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,15 @@ function backup_previous_release {
fi
}


function clean_egg_info {
rm -rf .eggs src/scancode_toolkit.egg-info src/scancode_toolkit_mini.egg-info
}


function clean_build {
rm -rf build dist thirdparty PYTHON_EXECUTABLE SCANCODE_DEV_MODE
clean_egg_info
}

backup_previous_release
Expand All @@ -213,12 +220,15 @@ bin/pip install $QUIET -r etc/release/requirements.txt
################################
echo " "
echo "## RELEASE: Building a wheel and a source distribution"
clean_egg_info
bin/python setup.py $QUIET sdist bdist_wheel

mv dist release/pypi


echo " "
echo "## RELEASE: Building a mini wheel and a source distribution"
clean_egg_info
mv setup.cfg setup-full.cfg
cp setup-mini.cfg setup.cfg
rm -rf build
Expand All @@ -227,6 +237,7 @@ mv setup-full.cfg setup.cfg

cp dist/* release/pypi/

clean_egg_info
echo "## RELEASE: full and mini, wheel and source distribution(s) built and ready for PyPI upload"
find release -ls

Expand Down

0 comments on commit cea1d29

Please sign in to comment.