Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
opt
/
alt
/
python35
/
lib
/
python3.5
/
site-packages
/
setuptools
/
command
/
__pycache__
/
File Content:
bdist_rpm.cpython-35.opt-1.pyc
i�Re� � @ s/ d d l j j Z Gd d � d e j � Z d S)� Nc @ s. e Z d Z d Z d d � Z d d � Z d S)� 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. c C s! | j d � t j j | � d S)NZegg_info)Zrun_command�origr �run)�self� r � /bdist_rpm.pyr s z bdist_rpm.runc s� | j j � } | j d d � } t j j | � } d | � d | � � � f d d � | D� } | j � � d } d | } | j | | � | S)N�-�_z%define version c sF g | ]<