Hello,
I would like to build an rpm from the latest beta version of Ansible (2.19.0b6) on Rockylinux8 (basically RHEL8) for testing purposes.
I tried with this tool:
but it is looking for a setup.py in the root of the unpacked archive.
+ /usr/bin/python3.12 setup.py build '--executable=/usr/bin/python3.12 P' /usr/bin/python3.12: can't open file '/rpmbuild/BUILD/ansible-2.19.0b6/setup.py': [Errno 2] No such file or directory
(I saw that the latest version which has setup.py is 2.17)
I also tried with byte-compile or wheel creation but none of them worked.
So, what is the proper way to do this? I would be happy if someone can point me in the right direction.
Thank You!
Have you tried running /usr/bin/python3.12 -m build instead of /usr/bin/python3.12 setup.py build? (I’m not an expert on how these things work, but we’re using that command in antsibull-build to build the sdist and wheel out of the source files, so this is what I would try…)
Hello, Thank You felixfontein!
I tried, and I only had to install the build module and it worked.
Now I am struggling with the install part.
I managed it with pip3.12 but in the end it says:
Installed (but unpackaged) file(s) found:
(many packages here)
maybe it is installing in the wrong directory, I might need to specify it.