Build documentation before install

This commit is contained in:
Sunil Mohan Adapa 2014-08-31 18:29:21 +05:30
parent c62f0cfa72
commit b12072d924

View File

@ -26,6 +26,7 @@ import glob
import os
from setuptools import find_packages, setup
import shutil
import subprocess
from plinth import __version__
@ -41,11 +42,12 @@ DIRECTORIES_TO_COPY = [
('/usr/share/doc/plinth/', 'doc'),
]
class CustomInstallData(install_data):
"""Override install command to allow directory creation"""
"""Override install command to allow directory creation and copy"""
def run(self):
"""Execute install command"""
subprocess.check_call(['make', '-C', 'doc'])
install_data.run(self) # Old style base class
# Create empty directories