Skip to content

Commit 389e0b9

Browse files
committed
make optional deps actually install-time optional
1 parent 24b912f commit 389e0b9

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Python3 is suggested, but Pwntools still works with Python 2.7. Most of the fun
4040
apt-get update
4141
apt-get install python3 python3-pip python3-dev git libssl-dev libffi-dev build-essential
4242
python3 -m pip install --upgrade pip
43-
python3 -m pip install --upgrade pwntools
43+
python3 -m pip install --upgrade pwntools[full]
4444
```
4545

4646

pyproject.toml

+12-8
Original file line numberDiff line numberDiff line change
@@ -34,30 +34,34 @@ keywords = ["pwntools", "exploit", "ctf", "capture", "the", "flag", "binary", "w
3434

3535
requires-python = ">=2.7"
3636
dependencies = [
37-
"paramiko>=1.15.2",
3837
"mako>=1.0.0",
3938
"pyelftools>=0.2.4",
40-
"capstone>=3.0.5rc2", # see Gallopsled/pwntools#971, Gallopsled/pwntools#1160
4139
"ropgadget>=5.3",
42-
"pyserial>=2.7",
43-
"requests>=2.0",
4440
"pip>=6.0.8",
4541
"pygments>=2.0",
46-
"pysocks",
4742
"python-dateutil",
4843
"packaging",
4944
"psutil>=3.3.0",
5045
"intervaltree>=3.0",
5146
"sortedcontainers",
52-
"unicorn>=1.0.2rc1", # see unicorn-engine/unicorn#1100 and #1170
5347
"six>=1.12.0",
54-
"rpyc",
55-
"colored_traceback",
5648
"pathlib2; python_version < '3.4'",
5749
"unix-ar; python_version >= '3'",
5850
"zstandard",
5951
]
6052

53+
[project.optional-dependencies]
54+
full = [
55+
"capstone>=3.0.5rc2", # see Gallopsled/pwntools#971, Gallopsled/pwntools#1160
56+
"colored_traceback",
57+
"paramiko>=1.15.2",
58+
"pyserial>=2.7",
59+
"pysocks",
60+
"requests>=2.0",
61+
"rpyc",
62+
"unicorn>=1.0.2rc1", # see unicorn-engine/unicorn#1100 and #1170
63+
]
64+
6165
[project.urls]
6266
homepage = "https://pwntools.com"
6367
download = "https://github.com/Gallopsled/pwntools/releases"

0 commit comments

Comments
 (0)