• File: bdist_rpm.cpython-36.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/lib/python3.6/site-packages/setuptools/command/__pycache__/bdist_rpm.cpython-36.pyc
  • Date Modified: 10/18/2026 11:59 PM
  • File size: 1.66 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
3

l]j@s"ddljjZGdddejZdS)Nc@s eZdZdZddZddZdS)	bdist_rpmaf
    Override the default bdist_rpm behavior to do the following:

    1. Run egg_info to ensure the name and version are properly calculated.
    2. Always run 'install' using --single-version-externally-managed to
       disable eggs in RPM distributions.
    3. Replace dash with underscore in the version numbers for better RPM
       compatibility.
    cCs|jdtjj|dS)NZegg_info)Zrun_commandorigrrun)selfr/usr/lib/python3.6/bdist_rpm.pyrs
z
bdist_rpm.runcsl|jj}|jdd}tjj|}d|d|fdd|D}|jd}d|}|j|||S)N-_z%define version cs0g|](}|jddjddjddjqS)zSource0: %{name}-%{version}.tarz)Source0: %{name}-%{unmangled_version}.tarzsetup.py install z5setup.py install --single-version-externally-managed z%setupz&%setup -n %{name}-%{unmangled_version})replace).0line)line23line24rr
<listcomp>s
z-bdist_rpm._make_spec_file.<locals>.<listcomp>z%define unmangled_version )ZdistributionZget_versionr
rr_make_spec_fileindexinsert)rversionZ
rpmversionspecZ
insert_locZunmangled_versionr)r
rrrs

zbdist_rpm._make_spec_fileN)__name__
__module____qualname____doc__rrrrrrrs	r)Zdistutils.command.bdist_rpmZcommandrrrrrr<module>s