From d94433a2ca047d06fc3d7d01aee8bff5b2cf4820 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Sat, 28 Apr 2018 21:39:52 -0700 Subject: [PATCH 1/2] Remove mpl_examples symlink. AFAICT we're not using it for anything, we don't have a similar symlink to the tutorials, and it annoys my tab-completion when I try to get into mpl_toolkits... --- lib/mpl_examples | 1 - 1 file changed, 1 deletion(-) delete mode 120000 lib/mpl_examples diff --git a/lib/mpl_examples b/lib/mpl_examples deleted file mode 120000 index a6573af9c9da..000000000000 --- a/lib/mpl_examples +++ /dev/null @@ -1 +0,0 @@ -../examples \ No newline at end of file From 4b957fde34c869e40d010d2ec871d3d219e59ee2 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Fri, 20 Jul 2018 19:04:25 +0200 Subject: [PATCH 2/2] Backport PR #11722: Remove unnecessary hacks from setup.py. - There are no symlinks in the mpl source tree anymore. - MANIFEST was removed from the root directory in 365a0a2f (11 years ago). --- setup.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/setup.py b/setup.py index 41037e95dbd1..b045f8953bb6 100644 --- a/setup.py +++ b/setup.py @@ -11,23 +11,6 @@ import sys -# distutils is breaking our sdists for files in symlinked dirs. -# distutils will copy if os.link is not available, so this is a hack -# to force copying -import os -try: - del os.link -except AttributeError: - pass - -# This 'if' statement is needed to prevent spawning infinite processes -# on Windows -if __name__ == '__main__': - # BEFORE importing distutils, remove MANIFEST. distutils doesn't properly - # update it when the contents of directories change. - if os.path.exists('MANIFEST'): - os.remove('MANIFEST') - from io import BytesIO import os from string import Template