mirror of
https://github.com/newren/git-filter-repo.git
synced 2024-07-06 18:32:14 +02:00
9cf87ae036
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>
9 lines
246 B
Python
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__))
|