$99 GRAYBYTE WORDPRESS FILE MANAGER $14

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/python34/lib/python3.4/site-packages/setuptools/command/

HOME
Current File : /opt/alt/python34/lib/python3.4/site-packages/setuptools/command//bdist_rpm.py
# This is just a kludge so that bdist_rpm doesn't guess wrong about the
# distribution name and version, if the egg_info command is going to alter
# them, another kludge to allow you to build old-style non-egg RPMs, and
# finally, a kludge to track .rpm files for uploading when run on Python <2.5.

from distutils.command.bdist_rpm import bdist_rpm as _bdist_rpm
import sys, os

class bdist_rpm(_bdist_rpm):

    def initialize_options(self):
        _bdist_rpm.initialize_options(self)
        self.no_egg = None

    if sys.version<"2.5":
        # Track for uploading any .rpm file(s) moved to self.dist_dir
        def move_file(self, src, dst, level=1):
            _bdist_rpm.move_file(self, src, dst, level)
            if dst==self.dist_dir and src.endswith('.rpm'):
                getattr(self.distribution,'dist_files',[]).append(
                    ('bdist_rpm',
                    src.endswith('.src.rpm') and 'any' or sys.version[:3],
                     os.path.join(dst, os.path.basename(src)))
                )

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













    def _make_spec_file(self):
        version = self.distribution.get_version()
        rpmversion = version.replace('-','_')
        spec = _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
        ]
        spec.insert(spec.index(line24)+1, "%define unmangled_version "+version)
        return spec






















Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.37 PM
root / linksafe
0755
__pycache__
--
3 Mar 2024 10.37 PM
root / linksafe
0755
__init__.py
0.54 KB
13 Nov 2023 9.21 PM
root / linksafe
0644
alias.py
2.428 KB
13 Nov 2023 9.21 PM
root / linksafe
0644
bdist_egg.py
18.279 KB
13 Nov 2023 9.21 PM
root / linksafe
0644
bdist_rpm.py
1.978 KB
13 Nov 2023 9.21 PM
root / linksafe
0644
bdist_wininst.py
2.229 KB
13 Nov 2023 9.21 PM
root / linksafe
0644
build_ext.py
11.576 KB
13 Nov 2023 9.21 PM
root / linksafe
0644
build_py.py
8.242 KB
13 Nov 2023 9.21 PM
root / linksafe
0644
develop.py
6.296 KB
13 Nov 2023 9.21 PM
root / linksafe
0644
easy_install.py
71.012 KB
13 Nov 2023 9.21 PM
root / linksafe
0755
egg_info.py
13.984 KB
13 Nov 2023 9.21 PM
root / linksafe
0644
install.py
3.97 KB
13 Nov 2023 9.21 PM
root / linksafe
0644
install_egg_info.py
3.743 KB
13 Nov 2023 9.21 PM
root / linksafe
0644
install_lib.py
2.428 KB
13 Nov 2023 9.21 PM
root / linksafe
0644
install_scripts.py
2.02 KB
13 Nov 2023 9.21 PM
root / linksafe
0644
register.py
0.271 KB
13 Nov 2023 9.21 PM
root / linksafe
0644
rotate.py
2.014 KB
13 Nov 2023 9.21 PM
root / linksafe
0644
saveopts.py
0.688 KB
13 Nov 2023 9.21 PM
root / linksafe
0644
sdist.py
8.146 KB
13 Nov 2023 9.21 PM
root / linksafe
0644
setopt.py
4.949 KB
13 Nov 2023 9.21 PM
root / linksafe
0644
test.py
5.793 KB
13 Nov 2023 9.21 PM
root / linksafe
0644
upload_docs.py
6.647 KB
13 Nov 2023 9.21 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF