8000 Building documentation from the tarball fails by mdboom · Pull Request #2187 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Building documentation from the tarball fails #2187

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 19, 2013
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix other symlinks in the doc directory
  • Loading branch information
mdboom committed Jul 17, 2013
commit 2c5ef7beabb4894e8c146fe002fc36ff5d47004e
17 changes: 12 additions & 5 deletions doc/make.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,18 @@ def all():
copy_if_out_of_date('../INSTALL', 'users/installing.rst')

# Create the examples symlink, if it doesn't exist
if not os.path.exists('mpl_examples'):
if hasattr(os, 'symlink'):
os.symlink('../examples', 'mpl_examples')
else:
shutil.copytree('../examples', 'mpl_examples')

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