Skip to content

Commit

Permalink
Update setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanHayes committed Jun 22, 2018
1 parent 1ba0a5a commit 3bb0965
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@
except:
pass

third_party_module_existed = False
try:
os.symlink(os.path.join(current_dir, '..', 'third_party'), symlink_path)
except:
pass
third_party_module_existed = True

packages = find_packages()
try:
Expand Down Expand Up @@ -84,4 +85,7 @@
],
)

os.unlink(symlink_path)
if not third_party_module_existed:
# Only try to unlink if a symlink was created, but not if
# gif_for_cli.third_party was directory (inside a distribution).
os.unlink(symlink_path)

0 comments on commit 3bb0965

Please sign in to comment.