X7ROOT File Manager
Current Path:
/opt/cloudlinux/venv/lib/python3.11/site-packages/setuptools/command
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
setuptools
/
command
/
??
..
??
__init__.py
(803 B)
??
__pycache__
??
_requirestxt.py
(4.13 KB)
??
alias.py
(2.32 KB)
??
bdist_egg.py
(16.55 KB)
??
bdist_rpm.py
(1.4 KB)
??
bdist_wheel.py
(21.73 KB)
??
build.py
(5.91 KB)
??
build_clib.py
(4.42 KB)
??
build_ext.py
(18.03 KB)
??
build_py.py
(15.17 KB)
??
develop.py
(1.57 KB)
??
dist_info.py
(3.37 KB)
??
easy_install.py
(780 B)
??
editable_wheel.py
(34.02 KB)
??
egg_info.py
(25.27 KB)
??
install.py
(4.95 KB)
??
install_egg_info.py
(2.03 KB)
??
install_lib.py
(4.22 KB)
??
install_scripts.py
(2.43 KB)
??
launcher manifest.xml
(628 B)
??
rotate.py
(2.14 KB)
??
saveopts.py
(692 B)
??
sdist.py
(7.2 KB)
??
setopt.py
(4.98 KB)
??
test.py
(1.31 KB)
Editing: develop.py
import site import subprocess import sys from setuptools import Command from setuptools.warnings import SetuptoolsDeprecationWarning class develop(Command): """Set up package for development""" user_options = [ ("install-dir=", "d", "install package to DIR"), ('no-deps', 'N', "don't install dependencies"), ('user', None, f"install in user site-package '{site.USER_SITE}'"), ('prefix=', None, "installation prefix"), ("index-url=", "i", "base URL of Python Package Index"), ] boolean_options = [ 'no-deps', 'user', ] install_dir = None no_deps = False user = False prefix = None index_url = None def run(self): cmd = ( [sys.executable, '-m', 'pip', 'install', '-e', '.', '--use-pep517'] + ['--target', self.install_dir] * bool(self.install_dir) + ['--no-deps'] * self.no_deps + ['--user'] * self.user + ['--prefix', self.prefix] * bool(self.prefix) + ['--index-url', self.index_url] * bool(self.index_url) ) subprocess.check_call(cmd) def initialize_options(self): DevelopDeprecationWarning.emit() def finalize_options(self) -> None: pass class DevelopDeprecationWarning(SetuptoolsDeprecationWarning): _SUMMARY = "develop command is deprecated." _DETAILS = """ Please avoid running ``setup.py`` and ``develop``. Instead, use standards-based tools like pip or uv. """ _SEE_URL = "https://github.com/pypa/setuptools/issues/917" _DUE_DATE = 2025, 10, 31
Upload File
Create Folder