piwheels / packages

Issue tracker for piwheels package issues
https://github.com/piwheels/packages/issues
20 stars 5 forks source link

Missing package: cmake #227

Closed JanLahmann closed 3 years ago

JanLahmann commented 3 years ago

Package name

cmake

Package version

3.21.1

PyPI URL

https://pypi.org/project/cmake/

piwheels URL

https://www.piwheels.org/project/cmake/

Python version

I am the maintainer

More information

The latest cmake versions cannot be build with the default sudo pip3 install cmake

But the following seems to work:

sudo apt update
sudo apt -y install libssl-dev cmake
sudo pip3 install cmake

Could you update the procedure accordingly ?

bennuttall commented 3 years ago

Ok, this is an unusual one. I've just tracked down why this is failing.

The failure boils down to:

File "setup.py", line 33, in <module>
      version=versioneer.get_version(),
  AttributeError: module 'versioneer' has no attribute 'get_version'

We have the library versioneer installed on the piwheels builders but this output is complaining that the module doesn't have a get_version function. We have the latest version installed, so it's not that.

However, what I discovered is that import versioneer in cmake's setup.py does not intend to import this library, it is supposed to import a file called versioneer.py

Unfortunately this means you can't build cmake if you have the library versioneer installed.

I will report this issue to cmake and I'll manually build the recent failing versions and import them in the next few days.

JanLahmann commented 3 years ago

Thank you, @bennuttall . That is great !

bennuttall commented 3 years ago

All imported:

Screenshot from 2021-07-31 12-08-05

If you see another release that fails in future, feel free to reopen this issue and I'll build it again.

Hopefully cmake will fix the issue before too long.