8000 Build support with dependencies for Windows by jbmohler · Pull Request #3388 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
Closed
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
Next Next commit
prepare a fresh git checkout for doc build on MS windows
  • Loading branch information
jbmohler committed Aug 20, 2014
commit d6fe8c9192181bb0b940cc169c8ac7b57c3724f9
10 changes: 10 additions & 0 deletions doc/make.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,16 @@ def all():
]

for link, target in required_symlinks:
if os.path.isfile(link):
# This is special processing that applies on platforms that don't deal
# with git symlinks -- probably only MS windows.
delete = False
with open(link, 'r') as content:
delete = target == content.read()
if delete:
os.unlink(link)
else:
raise RuntimeError("doc/{} should be a directory or symlink -- it isn't")
if not os.path.exists(link):
if hasattr(os, 'symlink'):
os.symlink(target, link)
Expand Down
0