Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OBITools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
28
Issues
28
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
20 deletions
+34
-20
distutils.ext/obidistutils/command/build_cexe.py
distutils.ext/obidistutils/command/build_cexe.py
+0
-3
distutils.ext/obidistutils/command/build_sphinx.py
distutils.ext/obidistutils/command/build_sphinx.py
+34
-17
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