File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
5655PIP_EXTRA_ARGS=" "
5756
Original file line number Diff line number Diff 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+
188194function clean_build {
189195 rm -rf build dist thirdparty PYTHON_EXECUTABLE SCANCODE_DEV_MODE
196+ clean_egg_info
190197}
191198
192199backup_previous_release
@@ -213,12 +220,15 @@ bin/pip install $QUIET -r etc/release/requirements.txt
213220# ###############################
214221echo " "
215222echo " ## RELEASE: Building a wheel and a source distribution"
223+ clean_egg_info
216224bin/python setup.py $QUIET sdist bdist_wheel
217225
218226mv dist release/pypi
219227
228+
220229echo " "
221230echo " ## RELEASE: Building a mini wheel and a source distribution"
231+ clean_egg_info
222232mv setup.cfg setup-full.cfg
223233cp setup-mini.cfg setup.cfg
224234rm -rf build
@@ -227,6 +237,7 @@ mv setup-full.cfg setup.cfg
227237
228238cp dist/* release/pypi/
229239
240+ clean_egg_info
230241echo " ## RELEASE: full and mini, wheel and source distribution(s) built and ready for PyPI upload"
231242find release -ls
232243
You can’t perform that action at this time.
0 commit comments