Skip to content

Commit bda9f25

Browse files
committed
Merge pull request #2187 from mdboom/build-docs-from-tarball
Building documentation from the tarball fails
2 parents c8f7c86 + 2c5ef7b commit bda9f25

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

doc/make.py

+13
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,19 @@ def all():
236236
os.chdir(os.path.dirname(os.path.join(current_dir, __file__)))
237237
copy_if_out_of_date('../INSTALL', 'users/installing.rst')
238238

239+
# Create the examples symlink, if it doesn't exist
240+
241+
required_symlinks = [
242+
('mpl_examples', '../examples/'),
243+
('mpl_toolkits/axes_grid/examples', '../../../examples/axes_grid/')
244+
]
245+
246+
for link, target in required_symlinks:
247+
if not os.path.exists(link):
248+
if hasattr(os, 'symlink'):
249+
os.symlink(target, link)
250+
else:
251+
shutil.copytree(os.path.join(link, '..', target), link)
239252

240253
if len(sys.argv)>1:
241254
if '--small' in sys.argv[1:]:

0 commit comments

Comments
 (0)