A Poetry user ran into undeclared build-time dependencies in ksql -- namely, pip is imported in setup.py but there is no declaration of this dependency:
|
if LooseVersion(pip.__version__) >= "10.0.0": |
|
from pip._internal.req import parse_requirements |
|
else: |
|
from pip.req import parse_requirements |
If you want to reliably import pip during a build, you need to declare the dependency somewhere. The modern way to do this (as described at that link) is to list everything in build-system.requires of your pyproject.toml; however, you can also use the deprecated setup_requires argument to setup() if you prefer.
A Poetry user ran into undeclared build-time dependencies in ksql -- namely,
pipis imported insetup.pybut there is no declaration of this dependency:ksql-python/setup.py
Lines 10 to 13 in 6161b48
If you want to reliably import pip during a build, you need to declare the dependency somewhere. The modern way to do this (as described at that link) is to list everything in
build-system.requiresof your pyproject.toml; however, you can also use the deprecatedsetup_requiresargument tosetup()if you prefer.