# Build rpm from latest beta of 2.19

**URL:** <https://forum.ansible.com/t/build-rpm-from-latest-beta-of-2-19/43525>\
**Category:** Get Help\
**Tags:** rockylinux, rhel\
**Created:** [June 24, 2025, 8:34am UTC](https://forum.ansible.com/t/build-rpm-from-latest-beta-of-2-19/43525 "2025-06-24T08:34:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramton](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ramton/32/8891_2.png) [@ramton](https://forum.ansible.com/u/ramton)\
**Post date:** [June 24, 2025, 8:34am UTC](https://forum.ansible.com/t/build-rpm-from-latest-beta-of-2-19/43525/1 "2025-06-24T08:34:38Z")

</div>

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:

> **[GitHub - nkadel/ansiblerepo: ansible 4.x and ansible-core 2.x RPM building...](https://github.com/nkadel/ansiblerepo)**
>
> ansible 4.x and ansible-core 2.x RPM building reqpository for RHEL based OS

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!

---

<div class="post-metadata">

**Author:** ![felixfontein](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/felixfontein/32/7530_2.png) [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Post date:** [June 24, 2025, 4:00pm UTC](https://forum.ansible.com/t/build-rpm-from-latest-beta-of-2-19/43525/2 "2025-06-24T16:00:00Z")

</div>

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…)

---

<div class="post-metadata">

**Author:** ![ramton](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ramton/32/8891_2.png) [@ramton](https://forum.ansible.com/u/ramton)\
**Post date:** [June 25, 2025, 10:50am UTC](https://forum.ansible.com/t/build-rpm-from-latest-beta-of-2-19/43525/3 "2025-06-25T10:50:28Z")

</div>

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.
