Skip to content

Commit

Permalink
make optional deps actually install-time optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Arusekk committed Aug 20, 2023
1 parent 7add513 commit 3c1b453
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Python3 is suggested, but Pwntools still works with Python 2.7. Most of the fun
apt-get update
apt-get install python3 python3-pip python3-dev git libssl-dev libffi-dev build-essential
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade pwntools
python3 -m pip install --upgrade pwntools[full]
```


Expand Down
20 changes: 12 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,30 +34,34 @@ keywords = ["pwntools", "exploit", "ctf", "capture", "the", "flag", "binary", "w

requires-python = ">=2.7"
dependencies = [
"paramiko>=1.15.2",
"mako>=1.0.0",
"pyelftools>=0.2.4",
"capstone>=3.0.5rc2", # see Gallopsled/pwntools#971, Gallopsled/pwntools#1160
"ropgadget>=5.3",
"pyserial>=2.7",
"requests>=2.0",
"pip>=6.0.8",
"pygments>=2.0",
"pysocks",
"python-dateutil",
"packaging",
"psutil>=3.3.0",
"intervaltree>=3.0",
"sortedcontainers",
"unicorn>=1.0.2rc1", # see unicorn-engine/unicorn#1100 and #1170
"six>=1.12.0",
"rpyc",
"colored_traceback",
"pathlib2; python_version < '3.4'",
"unix-ar; python_version >= '3'",
"zstandard",
]

[project.optional-dependencies]
full = [
"capstone>=3.0.5rc2", # see Gallopsled/pwntools#971, Gallopsled/pwntools#1160
"colored_traceback",
"paramiko>=1.15.2",
"pyserial>=2.7",
"pysocks",
"requests>=2.0",
"rpyc",
"unicorn>=1.0.2rc1", # see unicorn-engine/unicorn#1100 and #1170
]

[project.urls]
homepage = "https://pwntools.com"
download = "https://github.com/Gallopsled/pwntools/releases"
Expand Down

0 comments on commit 3c1b453

Please sign in to comment.