Commit f18a8e43 authored by Jason Madden's avatar Jason Madden

Workaround flaky RTD behaviour in not putting the directory holding cython on the path. [skip ci]

parent c5d58ae4
......@@ -23,6 +23,12 @@ CYTHON = os.environ.get('CYTHON') or 'cython'
DEBUG = False
WRITE_OUTPUT = False
if os.getenv('READTHEDOCS'):
# Sometimes RTD fails to put our virtualenv bin directory
# on the PATH, meaning we can't run cython. Fix that.
new_path = os.environ['PATH'] + os.pathsep + os.path.dirname(sys.executable)
os.environ['PATH'] = new_path
# Parameter name in macros must match this regex:
param_name_re = re.compile('^[a-zA-Z_]\w*$')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment