To be specific, the above line will install first the 'splinter' package, then install the extra dependencies the 'splinter' project requires with the 'django' option specified in a setup.py of 'splinter' project. The square bracket contains the 'extra' option's information defined in setup.py that pip will use to install additional dependencies. On the right are the correlated installation commands for these optional sub-packages. On the left in setup.py - extras_require is defined. You can see how this was accomplished in the setup.py script Swe-airflow-tools (0.0.3) - Tools for Apache Airflow ApplicationĪirflow (0.6) - Placeholder for the old Airflow package Pylint-airflow (0.1.0a1) - A Pylint plugin to lint Apache Airflow code. When we search pypi for apache-airflow note that the optional packages do not show up: pip search 'apache-airflow'Īpache-airflow (1.10.9) - Programmatically author, schedule and monitor data pipelines You can install optional components of airflow with: pip install 'apache-airflow' To install airflow from pip we use this command: pip install 'apache-airflow' Just in case another developer comes along looking to implement this pattern in their own Python package deployment, here's further explanation of the brackets in pip. Brackets in PIP signify optional dependencies
0 Comments
Leave a Reply. |