简体   繁体   中英

Python command to create no-arch rpm's

I am creating rpm's for my project which is in pure python. I am running the command

python setup.py bdist_rpm

to build the rpm. This is creating architechture specific rpm's (x86 or x86-64). What I would like is to have a no-arch rpm. Can any of python guru's help me with creating a no-arch rpm. Any help would be appriciated. Thanks in advance.

If your software does not contain extension modules (modules written in C/C++), distutils will make the RPM noarch. I don't think there's a way to explicitly control it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM