From c91f2559dac8db586d99abb64bfbf1ba1ae2b5b9 Mon Sep 17 00:00:00 2001 From: gunSlaveUnit Date: Sat, 27 Dec 2025 15:23:33 +0300 Subject: [PATCH] Fix source installation instructions. - Replace outdated 'python setup.py install' with 'python -m pip install -e .'. - Add virtual environment instructions for PEP 668 compatibility. - Update the GitHub URL to HTTPS. --- README.rst | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 0b9acd2..7f4b042 100644 --- a/README.rst +++ b/README.rst @@ -30,9 +30,23 @@ To install with pywin32 or pyobjc required specify the extra `nativeLib`: python -m pip install -U send2trash[nativeLib] -or you can download the source from http://github.com/arsenetar/send2trash and install it with:: +or download the source from https://github.com/arsenetar/send2trash and install it with: - >>> python setup.py install + >>> python -m pip install -e . + +On systems where Python enforces PEP 668 (e.g., recent Linux distributions), +installing packages into the system Python may be restricted. +Use a virtual environment: + + >>> python -m venv .venv + + GNU/Linux / macOS: + + >>> source .venv/bin/activate + + Windows: + + >>> .venv\Scripts\activate Usage -----