-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
colcon package versions assume package already installed #374
Comments
see https://packaging.python.org/guides/single-sourcing-package-version/ for some recommended ways to specify the package version which don't have this problem. |
The What version of |
You’re right - it should work for setuptools 46.4.0. I somehow totally missed that note! But setuptools is an install_requires and not a setup_requires and has a minimum version of 30.3.0. Line 39 in caee5e6
I suspect the issue is either that poetry does not implement the special AST analysis or that a clean venv does not have a bleeding edge setuptools. Will investigate deeper. |
It's a super slippery bug to reproduce, and I'm having trouble pinning it down fully. I think this might be a bug in I'm not sure if #381 will resolve the issue fully with |
Due to issues discussed in colcon#374, colcon-core setup requires setuptools 46.4.0 to install correctly.
The way colcon package versions are specified relies on having the current module already installed.
colcon-core/setup.cfg
Lines 1 to 3 in caee5e6
At build time, we have
version = attr: colcon_core.__version__
but there is no guarantee thatcolcon_core
is in the python path at that time,When you install
colcon_core
with poetry, this shows up as aParseVersionError
:This setup is also known to cause trouble with setuptools:
pypa/setuptools#1724
The text was updated successfully, but these errors were encountered: