Ned Deily <[email protected]> added the comment:
> So I guess the only way to actually get make doctest to work is if the
> virtual env uses the version of python in main. Is there anyway to do that?
By default, the Doc/Makefile "venv" target uses the first "python3" it finds on
your shell PATH to build the venv and sphinx. Either arrange for "python3" to
point at a Python of the same release family on your PATH or you can use the
PYTHON= command line argument to "make venv" to specify the path to the
interpreter, for example:
cd cpython
./configure && make
cd Doc
make clean venv doctest PYTHON=../python
[...]
Doctest summary
===============
2388 tests
0 failures in tests
0 failures in setup code
0 failures in cleanup code
build succeeded.
[...]
----------
nosy: +ned.deily
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue45920>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com