git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/igc: support I226 devices
[dpdk.git]
/
buildtools
/
call-sphinx-build.py
diff --git
a/buildtools/call-sphinx-build.py
b/buildtools/call-sphinx-build.py
index
26b1992
..
39a60d0
100755
(executable)
--- a/
buildtools/call-sphinx-build.py
+++ b/
buildtools/call-sphinx-build.py
@@
-7,7
+7,7
@@
import sys
import os
from os.path import join
from subprocess import run, PIPE, STDOUT
import os
from os.path import join
from subprocess import run, PIPE, STDOUT
-from
distutils.version import Strict
Version
+from
packaging.version import
Version
# assign parameters to variables
(sphinx, version, src, dst, *extra_args) = sys.argv[1:]
# assign parameters to variables
(sphinx, version, src, dst, *extra_args) = sys.argv[1:]
@@
-19,7
+19,7
@@
os.environ['DPDK_VERSION'] = version
ver = run([sphinx, '--version'], stdout=PIPE,
stderr=STDOUT).stdout.decode().split()[-1]
sphinx_cmd = [sphinx] + extra_args
ver = run([sphinx, '--version'], stdout=PIPE,
stderr=STDOUT).stdout.decode().split()[-1]
sphinx_cmd = [sphinx] + extra_args
-if
StrictVersion(ver) >= Strict
Version('1.7'):
+if
Version(ver) >=
Version('1.7'):
sphinx_cmd += ['-j', 'auto']
# find all the files sphinx will process so we can write them as dependencies
sphinx_cmd += ['-j', 'auto']
# find all the files sphinx will process so we can write them as dependencies