Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
OBITools
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
25
Issues
25
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
OBITools
OBITools
Commits
48dc9497
Commit
48dc9497
authored
Apr 15, 2015
by
Eric Coissac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to solve dependencies with sphinx at the first install
parent
2614654b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
21 deletions
+35
-21
build_cexe.py
distutils.ext/obidistutils/command/build_cexe.py
+0
-3
build_sphinx.py
distutils.ext/obidistutils/command/build_sphinx.py
+35
-18
No files found.
distutils.ext/obidistutils/command/build_cexe.py
View file @
48dc9497
...
...
@@ -4,11 +4,8 @@ Created on 20 oct. 2012
@author: coissac
'''
import
os
from
obidistutils.command.build_ctools
import
build_ctools
from
distutils.sysconfig
import
customize_compiler
from
distutils.errors
import
DistutilsSetupError
from
distutils
import
log
class
build_cexe
(
build_ctools
):
...
...
distutils.ext/obidistutils/command/build_sphinx.py
View file @
48dc9497
...
...
@@ -4,22 +4,39 @@ Created on 10 mars 2015
@author: coissac
'''
from
sphinx.setup_command
import
BuildDoc
as
ori_build_sphinx
from
distutils
import
log
class
build_sphinx
(
ori_build_sphinx
):
'''
Build Sphinx documentation in html, epub and man formats
'''
try
:
from
sphinx.setup_command
import
BuildDoc
as
ori_build_sphinx
class
build_sphinx
(
ori_build_sphinx
):
'''
Build Sphinx documentation in html, epub and man formats
'''
description
=
__doc__
def
run
(
self
):
self
.
builder
=
'html'
self
.
finalize_options
()
ori_build_sphinx
.
run
(
self
)
self
.
builder
=
'epub'
self
.
finalize_options
()
ori_build_sphinx
.
run
(
self
)
self
.
builder
=
'man'
self
.
finalize_options
()
ori_build_sphinx
.
run
(
self
)
except
ImportError
:
from
distutils.core
import
Command
description
=
__doc__
def
run
(
self
):
self
.
builder
=
'html'
self
.
finalize_options
()
ori_build_sphinx
.
run
(
self
)
self
.
builder
=
'epub'
self
.
finalize_options
()
ori_build_sphinx
.
run
(
self
)
self
.
builder
=
'man'
self
.
finalize_options
()
ori_build_sphinx
.
run
(
self
)
\ No newline at end of file
class
build_sphinx
(
Command
):
'''
Build Sphinx documentation in html, epub and man formats
'''
description
=
__doc__
def
run
(
self
):
log
.
info
(
"Sphinx not installed documentation will not be generated"
)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment