Permalink
Browse files

Merge pull request #330 from yeiniel/master

corrected the support for selecting from multiple python interpreters
  • Loading branch information...
2 parents ae00b42 + 75048a4 commit 96b386511ba13783a0cce691636e9bc8628ca03b @ericholscher ericholscher committed Mar 1, 2013
Showing with 2 additions and 4 deletions.
  1. +1 −3 readthedocs/projects/forms.py
  2. +1 −1 readthedocs/projects/tasks.py
@@ -28,12 +28,10 @@ class ImportProjectForm(ProjectForm):
repo = forms.CharField(required=True,
help_text=_(u'URL for your code (hg or git). Ex. http://github.com/ericholscher/django-kong.git'))
- """
python_interpreter = forms.ChoiceField(
choices=constants.PYTHON_CHOICES, initial='python',
help_text=_("(Beta) The Python interpreter used to create the virtual environment."))
- """
-
+
class Meta:
model = Project
fields = (
@@ -304,7 +304,7 @@ def update_imported_docs(version_pk):
# Here the command has been modified to support different
# interpreters.
update_docs_output['venv'] = run('{cmd} --distribute {site_packages} {path}'.format(
- cmd='{interpreter} -m virtualenv'.format(
+ cmd='virtualenv -p {interpreter}'.format(
interpreter=project.python_interpreter),
site_packages=site_packages,
path=project.venv_path(version=version_slug)))

0 comments on commit 96b3865

Please sign in to comment.