File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -129,12 +129,15 @@ def _pip_cache_cmd_argument(self):
129
129
130
130
The decision is made considering if the directories are going to be
131
131
cleaned after the build (``RTD_CLEAN_AFTER_BUILD=True`` or project has
132
- the ``CLEAN_AFTER_BUILD`` feature enabled). In this case, there is no
133
- need to cache anything.
132
+ the ``CLEAN_AFTER_BUILD`` feature enabled) and project has not the
133
+ feature ``CACHED_ENVIRONMENT``. In this case, there is no need to cache
134
+ anything.
134
135
"""
135
136
if (
136
- settings .RTD_CLEAN_AFTER_BUILD or
137
- self .project .has_feature (Feature .CLEAN_AFTER_BUILD )
137
+ (
138
+ settings .RTD_CLEAN_AFTER_BUILD or
139
+ self .project .has_feature (Feature .CLEAN_AFTER_BUILD )
140
+ ) and not self .project .has_feature (Feature .CACHED_ENVIRONMENT )
138
141
):
139
142
return [
140
143
'--no-cache-dir' ,
You can’t perform that action at this time.
0 commit comments