Creating Python RPM

后端 未结 2 1529
攒了一身酷
攒了一身酷 2021-01-01 05:46

I have been reading about creating an RPM for Python 2.6.4. In this page: http://docs.python.org/distutils/builtdist.html it says you can create an RPM of the current Python

相关标签:
2条回答
  • 2021-01-01 06:25
    1. This command has to be typed wherever your setup.py is located.
    2. It packages everything that would show up in a bdist tarball.
    3. Err... sort of. While it works, the package it creates is not of very high quality. It's better to use sdist_rpm, then unpack the resulting SRPM and then apply your distro's Python packaging guidelines to the generated spec file.
    4. Get it to work via bdist first. That way any issues that crop up will be more manageable.
    0 讨论(0)
  • 2021-01-01 06:28

    These instructions explain how to create an RPM package for your module. As far as I know, there is no (easy) way to package all your Python installation into an RPM.

    If you want to create an RPM package to install Python 2.6.4 on an older distro, you download the Python 2.6.4 source RPM and then rebuild it with rpmbuild. See Fedora RPM Guide.

    0 讨论(0)
提交回复
热议问题