Skip to content

Commit

Permalink
Merge pull request #2187 from mdboom/build-docs-from-tarball
Browse files Browse the repository at this point in the history
Building documentation from the tarball fails
  • Loading branch information
mdboom committed Jul 19, 2013
2 parents c8f7c86 + 2c5ef7b commit bda9f25
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions doc/make.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,19 @@ def all():
os.chdir(os.path.dirname(os.path.join(current_dir, __file__)))
copy_if_out_of_date('../INSTALL', 'users/installing.rst')

# Create the examples symlink, if it doesn't exist

required_symlinks = [
('mpl_examples', '../examples/'),
('mpl_toolkits/axes_grid/examples', '../../../examples/axes_grid/')
]

for link, target in required_symlinks:
if not os.path.exists(link):
if hasattr(os, 'symlink'):
os.symlink(target, link)
else:
shutil.copytree(os.path.join(link, '..', target), link)

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

0 comments on commit bda9f25

Please sign in to comment.