File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 89
89
# detect all available Python interpreters in the fly (Maybe using
90
90
# update-alternatives linux tool family?).
91
91
PYTHON_CHOICES = (
92
- ('python' , _ ('Python' )),
92
+ ('python' , _ ('Python 2.x ' )),
93
93
('python3' , _ ('Python 3.x' )),
94
94
)
Original file line number Diff line number Diff line change @@ -304,7 +304,7 @@ def update_imported_docs(version_pk):
304
304
# interpreters.
305
305
update_docs_output ['venv' ] = run ('{cmd} --distribute {site_packages} {path}' .format (
306
306
cmd = '{interpreter} -m virtualenv' .format (
307
- interpreter = project .python_version ),
307
+ interpreter = project .python_interpreter ),
308
308
site_packages = site_packages ,
309
309
path = project .venv_path (version = version_slug )))
310
310
# Other code expects sphinx-build to be installed inside the virtualenv.
@@ -314,7 +314,12 @@ def update_imported_docs(version_pk):
314
314
ignore_option = '-I'
315
315
else :
316
316
ignore_option = ''
317
- update_docs_output ['sphinx' ] = run ('{cmd} install -U {ignore_option} hg+http://bitbucket.org/birkenfeld/sphinx/@d4c6ac1fcc9c#egg=Sphinx virtualenv==1.8.2 distribute==0.6.28 docutils==0.8.1' .format (
317
+ if project .python_interpreter != 'python3' :
318
+ update_docs_output ['sphinx' ] = run ('{cmd} install -U {ignore_option} hg+http://bitbucket.org/birkenfeld/sphinx/@d4c6ac1fcc9c#egg=Sphinx virtualenv==1.8.2 distribute==0.6.28 docutils==0.8.1' .format (
319
+ cmd = project .venv_bin (version = version_slug , bin = 'pip' ), ignore_option = ignore_option ))
320
+ else :
321
+ # python 3 specific hax
322
+ update_docs_output ['sphinx' ] = run ('{cmd} install {ignore_option} hg+http://bitbucket.org/birkenfeld/sphinx/@d4c6ac1fcc9c#egg=Sphinx virtualenv==1.8.2 docutils==0.8.1' .format (
318
323
cmd = project .venv_bin (version = version_slug , bin = 'pip' ), ignore_option = ignore_option ))
319
324
320
325
if project .requirements_file :
You can’t perform that action at this time.
0 commit comments