Skip to content

Commit cea1d29

Browse files
committed
Cleanup egg-info in configure or release build
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent ad8820a commit cea1d29

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

configure

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,11 @@ CLEANABLE="
4646
pip-selfcheck.json
4747
src/scancode_toolkit.egg-info
4848
src/scancode_toolkit_mini.egg-info
49-
scancode_toolkit.egg-info
50-
scancode_toolkit_mini.egg-info
5149
SCANCODE_DEV_MODE
5250
man
5351
Scripts"
5452

53+
5554
# extra arguments passed to pip
5655
PIP_EXTRA_ARGS=" "
5756

etc/release/scancode-create-release.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,15 @@ function backup_previous_release {
185185
fi
186186
}
187187

188+
189+
function clean_egg_info {
190+
rm -rf .eggs src/scancode_toolkit.egg-info src/scancode_toolkit_mini.egg-info
191+
}
192+
193+
188194
function clean_build {
189195
rm -rf build dist thirdparty PYTHON_EXECUTABLE SCANCODE_DEV_MODE
196+
clean_egg_info
190197
}
191198

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

218226
mv dist release/pypi
219227

228+
220229
echo " "
221230
echo "## RELEASE: Building a mini wheel and a source distribution"
231+
clean_egg_info
222232
mv setup.cfg setup-full.cfg
223233
cp setup-mini.cfg setup.cfg
224234
rm -rf build
@@ -227,6 +237,7 @@ mv setup-full.cfg setup.cfg
227237

228238
cp dist/* release/pypi/
229239

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

0 commit comments

Comments
 (0)