Skip to content

Commit 64eccc7

Browse files
committed
fix #22
1 parent f512abe commit 64eccc7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

nimporter_cli.py

+9
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ def clean(dir=pathlib.Path()):
1111
# .exp and .lib are generated on Windows
1212
remove_these = NimCompiler.EXT, '.hash', '.exp', '.lib'
1313

14+
# Check for MANIFEST.in in CWD
15+
if list(dir.glob('MANIFEST.in')):
16+
item = dir / 'MANIFEST.in'
17+
header = 'NIMPORTER BUNDLE'
18+
for line in item.read_text().splitlines():
19+
if header in line:
20+
os.remove(str(item.resolve()))
21+
print('Deleted:'.ljust(19), item.resolve())
22+
1423
for folder in filter(lambda p: p.is_dir(), dir.iterdir()):
1524
if folder.name == '__pycache__':
1625
for item in folder.iterdir():

0 commit comments

Comments
 (0)