mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
commit
b0fd632695
@ -31,9 +31,13 @@ pygments_style = 'sphinx'
|
|||||||
# -- Options for HTML output ---------------------------------------------------
|
# -- Options for HTML output ---------------------------------------------------
|
||||||
|
|
||||||
if not on_rtd: # only import and set the theme if we're building docs locally
|
if not on_rtd: # only import and set the theme if we're building docs locally
|
||||||
import sphinx_rtd_theme
|
try:
|
||||||
html_theme = 'sphinx_rtd_theme'
|
import sphinx_rtd_theme
|
||||||
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
|
except ImportError:
|
||||||
|
html_theme = 'default'
|
||||||
|
else:
|
||||||
|
html_theme = 'sphinx_rtd_theme'
|
||||||
|
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
|
||||||
else:
|
else:
|
||||||
html_theme = 'default'
|
html_theme = 'default'
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,8 @@
|
|||||||
%{__python} setup.py install --skip-build --root=$RPM_BUILD_ROOT
|
%{__python} setup.py install --skip-build --root=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
# Build the HTML documentation using the default theme.
|
||||||
|
%{__python} setup.py build_sphinx
|
||||||
|
|
||||||
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
|
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
|
||||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
||||||
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
||||||
@ -8,6 +11,6 @@
|
|||||||
INSTALLED_FILES="\
|
INSTALLED_FILES="\
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%doc docs
|
%doc LICENSE NOTICE README.rst THANKS build/sphinx/html examples/example_config.py
|
||||||
"
|
"
|
||||||
echo "$INSTALLED_FILES" > INSTALLED_FILES
|
echo "$INSTALLED_FILES" > INSTALLED_FILES
|
||||||
|
|||||||
@ -1,7 +1,8 @@
|
|||||||
[bdist_rpm]
|
[bdist_rpm]
|
||||||
build-requires = python2-devel python-setuptools
|
build-requires = python2-devel python-setuptools python-sphinx
|
||||||
requires = python-setuptools >= 0.6c6 python-ctypes
|
requires = python-setuptools >= 0.6c6 python-ctypes
|
||||||
install_script = rpm/install
|
install_script = rpm/install
|
||||||
|
group = System Environment/Daemons
|
||||||
|
|
||||||
[pytest]
|
[pytest]
|
||||||
norecursedirs = examples lib local src
|
norecursedirs = examples lib local src
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user