mirror of
https://github.com/beetbox/beets.git
synced 2026-01-30 12:02:41 +01:00
fix man-page inclusion if directory already exists
This commit is contained in:
parent
c34e7dfc22
commit
76b90df4e1
1 changed files with 4 additions and 1 deletions
5
setup.py
5
setup.py
|
|
@ -36,7 +36,10 @@ if 'sdist' in sys.argv:
|
|||
os.chdir(curdir)
|
||||
|
||||
# Copy resulting manpages.
|
||||
shutil.copytree(os.path.join(docdir, '_build', 'man'), 'man')
|
||||
mandir = os.path.join(os.path.dirname(__file__), 'man')
|
||||
if os.path.exists(mandir):
|
||||
shutil.rmtree(mandir)
|
||||
shutil.copytree(os.path.join(docdir, '_build', 'man'), mandir)
|
||||
|
||||
setup(name='beets',
|
||||
version='1.0b11',
|
||||
|
|
|
|||
Loading…
Reference in a new issue