diff --git a/build.py b/build.py index 23a6a65..59f7858 100644 --- a/build.py +++ b/build.py @@ -24,6 +24,10 @@ os.system(f'pyinstaller specs/PyDetex_Single.spec --noconfirm {upx}') elif mode == 'pip': + if os.path.isdir('dist/pip'): + for k in os.listdir('dist'): + if '.egg' in k: + os.remove(f'dist/{k}') if os.path.isdir('dist/pip'): for k in os.listdir('dist/pip'): if 'pydetex-' in k: