[pypy-commit] benchmarks single-run: make sure sphinx benchmark runs use the same docutils

mattip pypy.commits at gmail.com
Fri Feb 7 10:14:40 EST 2020


Author: Matti Picus <matti.picus at gmail.com>
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)


More information about the pypy-commit mailing list