Ferenc Gerlits created MINIFICPP-2440:
-----------------------------------------

             Summary: Install all Python dependencies at once
                 Key: MINIFICPP-2440
                 URL: https://issues.apache.org/jira/browse/MINIFICPP-2440
             Project: Apache NiFi MiNiFi C++
          Issue Type: Improvement
            Reporter: Ferenc Gerlits


When installing dependencies for Python processors, we can get into trouble if, 
for example, processor A depends on pyfoo>=1.0.0 but processor B depends on 
pyfoo<2.0.0.  If the latest version of pyfoo is 2.0.1, and we load processor A 
first, it will install pyfoo=2.0.1, which will cause an error when we try to 
load processor B.

Pip is quite smart in resolving such conflicts, but it can only do so if we 
give it all the requirements at once.  So we should collect the dependency 
requirements from all requirements.txt files and all 
ProcessorDetails.dependencies fields in all processors, and call pip install 
with this full list once, instead of calling it multiple times.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to