From b12072d9245aaec0d242ee1d78118e9ad8d0e93a Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sun, 31 Aug 2014 18:29:21 +0530 Subject: [PATCH] Build documentation before install --- setup.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index d75d0d041..823f6db00 100755 --- a/setup.py +++ b/setup.py @@ -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