mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-30 20:49:48 -05:00
Fix multiple execution of python do ... end blocks
Only run the `python do ... end` loop once even if multiple `depends_on :python => 'module-name'` are present.
This commit is contained in:
1 parent
650cb8e69b
commit
7782804ee5
1 file changed
+2
-1
@@ -39,7 +39,8 @@ def python_helper(options={:allowed_major_versions => [2, 3]}, &block)
|
||||
if !filtered_python_reqs.map{ |fpr| fpr.binary }.include?(py.binary) &&
|
||||
py.satisfied? &&
|
||||
options[:allowed_major_versions].include?(py.version.major) &&
|
||||
self.build.with?(py.name) || !(py.optional? || py.recommended?)
|
||||
# if optional or recommended then check the build.with?
|
||||
(self.build.with?(py.name) || !(py.optional? || py.recommended?))
|
||||
then
|
||||
filtered_python_reqs << py
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user