X7ROOT File Manager
Current Path:
/opt/alt/python34/lib/python3.4/site-packages/setuptools/command
opt
/
alt
/
python34
/
lib
/
python3.4
/
site-packages
/
setuptools
/
command
/
ðŸ“
..
📄
__init__.py
(553 B)
ðŸ“
__pycache__
📄
alias.py
(2.43 KB)
📄
bdist_egg.py
(18.28 KB)
📄
bdist_rpm.py
(1.98 KB)
📄
bdist_wininst.py
(2.23 KB)
📄
build_ext.py
(11.58 KB)
📄
build_py.py
(8.24 KB)
📄
develop.py
(6.3 KB)
📄
easy_install.py
(71.01 KB)
📄
egg_info.py
(13.98 KB)
📄
install.py
(3.97 KB)
📄
install_egg_info.py
(3.74 KB)
📄
install_lib.py
(2.43 KB)
📄
install_scripts.py
(2.02 KB)
📄
register.py
(277 B)
📄
rotate.py
(2.01 KB)
📄
saveopts.py
(705 B)
📄
sdist.py
(8.15 KB)
📄
setopt.py
(4.95 KB)
📄
test.py
(5.79 KB)
📄
upload_docs.py
(6.65 KB)
Editing: bdist_wininst.py
from distutils.command.bdist_wininst import bdist_wininst as _bdist_wininst import os, sys class bdist_wininst(_bdist_wininst): _good_upload = _bad_upload = None def create_exe(self, arcname, fullname, bitmap=None): _bdist_wininst.create_exe(self, arcname, fullname, bitmap) installer_name = self.get_installer_filename(fullname) if self.target_version: pyversion = self.target_version # fix 2.5+ bdist_wininst ignoring --target-version spec self._bad_upload = ('bdist_wininst', 'any', installer_name) else: pyversion = 'any' self._good_upload = ('bdist_wininst', pyversion, installer_name) def _fix_upload_names(self): good, bad = self._good_upload, self._bad_upload dist_files = getattr(self.distribution, 'dist_files', []) if bad in dist_files: dist_files.remove(bad) if good not in dist_files: dist_files.append(good) def reinitialize_command (self, command, reinit_subcommands=0): cmd = self.distribution.reinitialize_command( command, reinit_subcommands) if command in ('install', 'install_lib'): cmd.install_lib = None # work around distutils bug return cmd def run(self): self._is_running = True try: _bdist_wininst.run(self) self._fix_upload_names() finally: self._is_running = False if not hasattr(_bdist_wininst, 'get_installer_filename'): def get_installer_filename(self, fullname): # Factored out to allow overriding in subclasses if self.target_version: # if we create an installer for a specific python version, # it's better to include this in the name installer_name = os.path.join(self.dist_dir, "%s.win32-py%s.exe" % (fullname, self.target_version)) else: installer_name = os.path.join(self.dist_dir, "%s.win32.exe" % fullname) return installer_name # get_installer_filename()
Upload File
Create Folder