1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-12-22 08:56:17 +00:00
supysonic/setup.py

29 lines
763 B
Python
Raw Normal View History

2017-08-07 09:04:00 +00:00
# This file is part of Supysonic.
# Supysonic is a Python implementation of the Subsonic server API.
#
# Copyright (C) 2013-2021 Alban 'spl0k' Féron
2017-08-07 09:04:00 +00:00
#
# Distributed under terms of the GNU AGPLv3 license.
2014-05-01 01:00:44 +00:00
import os.path
from distutils import dir_util
2017-08-07 09:04:00 +00:00
from setuptools import setup
from setuptools.command.sdist import sdist as _sdist
class sdist(_sdist):
def make_release_tree(self, base_dir, files):
super().make_release_tree(base_dir, files)
man_dir = os.path.join(base_dir, "man")
doctrees_dir = os.path.join(man_dir, ".doctrees")
self.spawn(["sphinx-build", "-q", "-b", "man", "docs", man_dir])
dir_util.remove_tree(doctrees_dir)
if __name__ == "__main__":
setup(
cmdclass={"sdist": sdist},
)