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
""" Archive tools for wheel. """ import os import time import logging import os.path import zipfile log = logging.getLogger("wheel") def archive_wheelfile(base_name, base_dir): '''Archive all files under `base_dir` in a whl file and name it like `base_name`. ''' olddir = os.path.abspath(os.curdir) base_name = os.path.abspath(base_name) try: os.chdir(base_dir) return make_wheelfile_inner(base_name) finally: os.chdir(olddir) def make_wheelfile_inner(base_name, base_dir='.'): """Create a whl file from all the files under 'base_dir'. Places .dist-info at the end of the archive.""" zip_filename = base_name + ".whl" log.info("creating '%s' and adding '%s' to it", zip_filename, base_dir) # Some applications need reproducible .whl files, but they can't do this # without forcing the timestamp of the individual ZipInfo objects. See # issue #143. timestamp = os.environ.get('SOURCE_DATE_EPOCH') if timestamp is None: date_time = None else: date_time = time.gmtime(int(timestamp))[0:6] # XXX support bz2, xz when available zip = zipfile.ZipFile(open(zip_filename, "wb+"), "w", compression=zipfile.ZIP_DEFLATED) score = {'WHEEL': 1, 'METADATA': 2, 'RECORD': 3} deferred = [] def writefile(path, date_time): st = os.stat(path) if date_time is None: mtime = time.gmtime(st.st_mtime) date_time = mtime[0:6] zinfo = zipfile.ZipInfo(path, date_time) zinfo.external_attr = st.st_mode << 16 zinfo.compress_type = zipfile.ZIP_DEFLATED with open(path, 'rb') as fp: zip.writestr(zinfo, fp.read()) log.info("adding '%s'" % path) for dirpath, dirnames, filenames in os.walk(base_dir): for name in filenames: path = os.path.normpath(os.path.join(dirpath, name)) if os.path.isfile(path): if dirpath.endswith('.dist-info'): deferred.append((score.get(name, 0), path)) else: writefile(path, date_time) deferred.sort() for score, path in deferred: writefile(path, date_time) zip.close() return zip_filename