Skip to content

Commit

Permalink
Remove eggs after pip
Browse files Browse the repository at this point in the history
  • Loading branch information
ppizarror committed Oct 26, 2021
1 parent dce2081 commit 47ddcf7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 47ddcf7

Please sign in to comment.