mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
Build documentation before install
This commit is contained in:
parent
c62f0cfa72
commit
b12072d924
6
setup.py
6
setup.py
@ -26,6 +26,7 @@ import glob
|
|||||||
import os
|
import os
|
||||||
from setuptools import find_packages, setup
|
from setuptools import find_packages, setup
|
||||||
import shutil
|
import shutil
|
||||||
|
import subprocess
|
||||||
|
|
||||||
from plinth import __version__
|
from plinth import __version__
|
||||||
|
|
||||||
@ -41,11 +42,12 @@ DIRECTORIES_TO_COPY = [
|
|||||||
('/usr/share/doc/plinth/', 'doc'),
|
('/usr/share/doc/plinth/', 'doc'),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
class CustomInstallData(install_data):
|
class CustomInstallData(install_data):
|
||||||
"""Override install command to allow directory creation"""
|
"""Override install command to allow directory creation and copy"""
|
||||||
def run(self):
|
def run(self):
|
||||||
"""Execute install command"""
|
"""Execute install command"""
|
||||||
|
subprocess.check_call(['make', '-C', 'doc'])
|
||||||
|
|
||||||
install_data.run(self) # Old style base class
|
install_data.run(self) # Old style base class
|
||||||
|
|
||||||
# Create empty directories
|
# Create empty directories
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user