Author: Matti Picus <[email protected]>
Branch: single-run
Changeset: r450:1d835bfd140d
Date: 2020-02-07 17:14 +0200
http://bitbucket.org/pypy/benchmarks/changeset/1d835bfd140d/
Log: make sure sphinx benchmark runs use the same docutils
diff --git a/benchmarks.py b/benchmarks.py
--- a/benchmarks.py
+++ b/benchmarks.py
@@ -219,7 +219,10 @@
htmldir = os.path.join(builddir, 'html')
os.mkdir(htmldir)
env = os.environ.copy()
- env['PYTHONPATH'] = os.pathsep.join([relative('lib'),
relative('lib/jinja2')])
+ major = sys.version_info.major
+ env['PYTHONPATH'] = os.pathsep.join([relative('lib'),
+ relative('lib/jinja2'),
+ relative('lib/cpython-doc/tools/docutils%d' %
major)])
args = python + [build, '-b', 'html', '-d', docdir, maindir, htmldir]
proc = subprocess.Popen(args, stderr=subprocess.PIPE,
stdout=subprocess.PIPE,
env=env)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit