Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3d78f2c

Browse files
anntzerjdemeyer
authored andcommitted
Remove unnecessary hacks from setup.py.
- There are no symlinks in the mpl source tree anymore. - MANIFEST was removed from the root directory in 365a0a2 (11 years ago).
1 parent d099603 commit 3d78f2c

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

setup.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,6 @@
1111

1212
import sys
1313

14-
# distutils is breaking our sdists for files in symlinked dirs.
15-
# distutils will copy if os.link is not available, so this is a hack
16-
# to force copying
17-
import os
18-
try:
19-
del os.link
20-
except AttributeError:
21-
pass
22-
23-
# This 'if' statement is needed to prevent spawning infinite processes
24-
# on Windows
25-
if __name__ == '__main__':
26-
# BEFORE importing distutils, remove MANIFEST. distutils doesn't properly
27-
# update it when the contents of directories change.
28-
if os.path.exists('MANIFEST'):
29-
os.remove('MANIFEST')
30-
3114
from io import BytesIO
3215
import os
3316
from string import Template

0 commit comments

Comments
 (0)