Skip to content

Commit 4ba0c27

Browse files
committed
Merge pull request #1576 from rtfd/respect-install-project
Respect installing project in virtualenv in builder
2 parents 457823d + d36ebae commit 4ba0c27

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

readthedocs/projects/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class Project(models.Model):
141141
skip = models.BooleanField(_('Skip'), default=False)
142142
mirror = models.BooleanField(_('Mirror'), default=False)
143143
use_virtualenv = models.BooleanField(
144-
_('Use virtualenv'),
144+
_('Install Project'),
145145
help_text=_("Install your project inside a virtualenv using <code>setup.py "
146146
"install</code>"),
147147
default=False

readthedocs/projects/tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def setup_environment(self):
309309
# Handle setup.py
310310
checkout_path = self.project.checkout_path(self.version.slug)
311311
setup_path = os.path.join(checkout_path, 'setup.py')
312-
if os.path.isfile(setup_path):
312+
if os.path.isfile(setup_path) and self.project.use_virtualenv:
313313
if getattr(settings, 'USE_PIP_INSTALL', False):
314314
self.build_env.run(
315315
'python',

0 commit comments

Comments
 (0)