Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.112
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python3 /
dist-packages /
wheel /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2025-04-10 17:07
signatures
[ DIR ]
drwxr-xr-x
2025-04-10 17:07
test
[ DIR ]
drwxr-xr-x
2025-04-10 17:07
tool
[ DIR ]
drwxr-xr-x
2025-04-10 17:07
__init__.py
96
B
-rw-r--r--
2016-02-06 18:19
__main__.py
416
B
-rw-r--r--
2015-09-15 19:28
archive.py
2.23
KB
-rw-r--r--
2016-02-06 18:14
bdist_wheel.py
17.03
KB
-rw-r--r--
2016-02-05 21:42
decorator.py
541
B
-rw-r--r--
2015-09-15 19:28
egg2wheel.py
2.57
KB
-rw-r--r--
2015-09-15 19:28
eggnames.txt
2.43
KB
-rw-r--r--
2015-09-15 19:28
install.py
17.65
KB
-rw-r--r--
2015-09-15 19:28
metadata.py
10.8
KB
-rw-r--r--
2016-12-01 17:04
paths.py
1.1
KB
-rw-r--r--
2015-09-15 19:28
pep425tags.py
5.22
KB
-rw-r--r--
2016-02-05 21:42
pkginfo.py
1.2
KB
-rw-r--r--
2015-09-15 19:28
util.py
4.78
KB
-rw-r--r--
2015-09-15 19:28
wininst2wheel.py
6.8
KB
-rw-r--r--
2015-09-15 19:28
Save
Rename
#!/usr/bin/env python import os.path import re import sys import tempfile import zipfile import wheel.bdist_wheel import shutil import distutils.dist from distutils.archive_util import make_archive from argparse import ArgumentParser from glob import iglob egg_info_re = re.compile(r'''(?P<name>.+?)-(?P<ver>.+?) (-(?P<pyver>.+?))?(-(?P<arch>.+?))?.egg''', re.VERBOSE) def egg2wheel(egg_path, dest_dir): egg_info = egg_info_re.match(os.path.basename(egg_path)).groupdict() dir = tempfile.mkdtemp(suffix="_e2w") if os.path.isfile(egg_path): # assume we have a bdist_egg otherwise egg = zipfile.ZipFile(egg_path) egg.extractall(dir) else: # support buildout-style installed eggs directories for pth in os.listdir(egg_path): src = os.path.join(egg_path, pth) if os.path.isfile(src): shutil.copy2(src, dir) else: shutil.copytree(src, os.path.join(dir, pth)) dist_info = "%s-%s" % (egg_info['name'], egg_info['ver']) abi = 'none' pyver = egg_info['pyver'].replace('.', '') arch = (egg_info['arch'] or 'any').replace('.', '_').replace('-', '_') if arch != 'any': # assume all binary eggs are for CPython pyver = 'cp' + pyver[2:] wheel_name = '-'.join(( dist_info, pyver, abi, arch )) bw = wheel.bdist_wheel.bdist_wheel(distutils.dist.Distribution()) bw.root_is_purelib = egg_info['arch'] is None dist_info_dir = os.path.join(dir, '%s.dist-info' % dist_info) bw.egg2dist(os.path.join(dir, 'EGG-INFO'), dist_info_dir) bw.write_wheelfile(dist_info_dir, generator='egg2wheel') bw.write_record(dir, dist_info_dir) filename = make_archive(os.path.join(dest_dir, wheel_name), 'zip', root_dir=dir) os.rename(filename, filename[:-3] + 'whl') shutil.rmtree(dir) def main(): parser = ArgumentParser() parser.add_argument('eggs', nargs='*', help="Eggs to convert") parser.add_argument('--dest-dir', '-d', default=os.path.curdir, help="Directory to store wheels (default %(default)s)") parser.add_argument('--verbose', '-v', action='store_true') args = parser.parse_args() for pat in args.eggs: for egg in iglob(pat): if args.verbose: sys.stdout.write("{0}... ".format(egg)) egg2wheel(egg, args.dest_dir) if args.verbose: sys.stdout.write("OK\n") if __name__ == "__main__": main()