We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
pydoc
1 parent 2727087 commit e83a1f1Copy full SHA for e83a1f1
bin/pyenv-virtualenv
@@ -533,6 +533,16 @@ if [ -d "${VIRTUALENV_PATH}" ] && [ -n "${COMPAT_VIRTUALENV_PATH}" ]; then
533
ln -fs "${VIRTUALENV_PATH}" "${COMPAT_VIRTUALENV_PATH}"
534
fi
535
536
+if [ ! -e "${VIRTUALENV_PATH}/bin/pydoc" ]; then
537
+ cat <<EOS > "${VIRTUALENV_PATH}/bin/pydoc"
538
+#!${VIRTUALENV_PATH}/bin/python
539
+import pydoc
540
+if __name__ == '__main__':
541
+ pydoc.cli()
542
+EOS
543
+ chmod +x "${VIRTUALENV_PATH}/bin/pydoc"
544
+fi
545
+
546
if [ -z "${NO_ENSUREPIP}" ]; then
547
## Install setuptools and pip.
548
PYENV_VERSION="${VIRTUALENV_NAME}" build_package_ensurepip
0 commit comments