PNG  IHDR* pHYs+ IDATx]n#; cdLb Ǚ[at¤_:uP}>!Usă cag޿ ֵNu`ݼTâabO7uL&y^wFٝA"l[|ŲHLN밪4*sG3|Dv}?+y߉{OuOAt4Jj.u]Gz*҉sP'VQKbA1u\`& Af;HWj hsO;ogTu uj7S3/QzUr&wS`M$X_L7r2;aE+ώ%vikDA:dR+%KzƉo>eOth$z%: :{WwaQ:wz%4foɹE[9<]#ERINƻv溂E%P1i01 |Jvҗ&{b?9g=^wζXn/lK::90KwrюO\!ջ3uzuGv^;騢wq<Iatv09:tt~hEG`v;3@MNZD.1]L:{ծI3`L(÷ba")Y.iljCɄae#I"1 `3*Bdz>j<fU40⨬%O$3cGt]j%Fߠ_twJ;ABU8vP3uEԑwQ V:h%))LfraqX-ۿX]v-\9I gl8tzX ]ecm)-cgʒ#Uw=Wlێn(0hPP/ӨtQ“&J35 $=]r1{tLuǮ*i0_;NƝ8;-vݏr8+U-kruȕYr0RnC]*ެ(M:]gE;{]tg(#ZJ9y>utRDRMdr9㪩̞zֹb<ģ&wzJM"iI( .ꮅX)Qw:9,i좜\Ԛi7&N0:asϓc];=ΗOӣ APqz93 y $)A*kVHZwBƺnWNaby>XMN*45~ղM6Nvm;A=jֲ.~1}(9`KJ/V F9[=`~[;sRuk]rєT!)iQO)Y$V ی ۤmzWz5IM Zb )ˆC`6 rRa}qNmUfDsWuˤV{ Pݝ'=Kֳbg,UҘVz2ﴻnjNgBb{? ߮tcsͻQuxVCIY۠:(V뺕 ٥2;t`@Fo{Z9`;]wMzU~%UA蛚dI vGq\r82iu +St`cR.6U/M9IENDB` REDROOM
PHP 5.6.40
Preview: bdist_rpm.py Size: 1.47 KB
//lib/python3.6/site-packages/setuptools/command/bdist_rpm.py

import distutils.command.bdist_rpm as orig


class bdist_rpm(orig.bdist_rpm):
    """
    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.
    """

    def run(self):
        # ensure distro name is up-to-date
        self.run_command('egg_info')

        orig.bdist_rpm.run(self)

    def _make_spec_file(self):
        version = self.distribution.get_version()
        rpmversion = version.replace('-', '_')
        spec = orig.bdist_rpm._make_spec_file(self)
        line23 = '%define version ' + version
        line24 = '%define version ' + rpmversion
        spec = [
            line.replace(
                "Source0: %{name}-%{version}.tar",
                "Source0: %{name}-%{unmangled_version}.tar"
            ).replace(
                "setup.py install ",
                "setup.py install --single-version-externally-managed "
            ).replace(
                "%setup",
                "%setup -n %{name}-%{unmangled_version}"
            ).replace(line23, line24)
            for line in spec
        ]
        insert_loc = spec.index(line24) + 1
        unmangled_version = "%define unmangled_version " + version
        spec.insert(insert_loc, unmangled_version)
        return spec

Directory Contents

Dirs: 1 × Files: 26

Name Size Perms Modified Actions
- drwxr-xr-x 2025-07-17 23:01:18
Edit Download
2.37 KB lrw-r--r-- 2025-07-15 09:13:40
Edit Download
17.76 KB lrw-r--r-- 2025-07-15 09:13:40
Edit Download
1.47 KB lrw-r--r-- 2025-07-15 09:13:40
Edit Download
637 B lrw-r--r-- 2025-07-15 09:13:40
Edit Download
4.38 KB lrw-r--r-- 2025-07-15 09:13:40
Edit Download
12.86 KB lrw-r--r-- 2025-07-15 09:13:40
Edit Download
9.37 KB lrw-r--r-- 2025-07-15 09:13:40
Edit Download
7.86 KB lrw-r--r-- 2025-07-15 09:13:40
Edit Download
960 B lrw-r--r-- 2025-07-15 09:13:40
Edit Download
85.16 KB lrw-r--r-- 2025-07-15 09:13:40
Edit Download
24.22 KB lrw-r--r-- 2025-07-15 09:13:40
Edit Download
4.57 KB lrw-r--r-- 2025-07-15 09:13:40
Edit Download
2.15 KB lrw-r--r-- 2025-07-15 09:13:40
Edit Download
3.75 KB lrw-r--r-- 2025-07-15 09:13:40
Edit Download
2.38 KB lrw-r--r-- 2025-07-15 09:13:40
Edit Download
628 B lrw-r--r-- 2025-07-15 09:13:40
Edit Download
4.87 KB lrw-r--r-- 2025-07-15 09:13:40
Edit Download
270 B lrw-r--r-- 2025-07-15 09:13:40
Edit Download
2.11 KB lrw-r--r-- 2025-07-15 09:13:40
Edit Download
658 B lrw-r--r-- 2025-07-15 09:13:40
Edit Download
6.55 KB lrw-r--r-- 2025-07-15 09:13:40
Edit Download
4.97 KB lrw-r--r-- 2025-07-15 09:13:40
Edit Download
9.00 KB lrw-r--r-- 2025-07-15 09:13:40
Edit Download
1.14 KB lrw-r--r-- 2025-07-15 09:13:40
Edit Download
7.14 KB lrw-r--r-- 2025-07-15 09:13:40
Edit Download
594 B lrw-r--r-- 2025-07-15 09:13:40
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).
© 2026 REDROOM — Secure File Manager. All rights reserved. Built with ❤️ & Red Dark UI