git-filter-repo/release/setup.py
Sirio Balmelli 9cf87ae036
setup.py: test for FileExistsError on symlink
Multiple runs of setuptools encounter a FileExistsError exception
trying to re-symlink the same files.

This exception is safe to ignore: the files were already symlinked
so the call can be considered successful.

Signed-off-by: Sirio Balmelli <sirio@b-ad.ch>
2020-02-11 20:19:01 +01:00

9 lines
246 B
Python

from setuptools import setup
import os
for f in ['git-filter-repo', 'git_filter_repo.py', 'README.md']:
try:
os.symlink("../"+f, f)
except FileExistsError:
pass
setup(use_scm_version=dict(root="..", relative_to=__file__))