Skip to content

Commit

Permalink
Prevent Python3 installation via "pip3 install pwntools" (#1093)
Browse files Browse the repository at this point in the history
Pwntools does not work on Python3, so that it installs successfully is misleading.

More information on 'python_requires' can be found here:

    https://packaging.python.org/tutorials/distributing-packages/#python-requires

Specifically, it requires pip 9.0 or better -- but this is the 'official' way to do this.

Fixes #1092
  • Loading branch information
zachriggle committed Jan 4, 2018
1 parent 5c4def0 commit 7860eec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions setup.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@


setup( setup(
name = 'pwntools', name = 'pwntools',
python_requires = '~=2.7',
packages = find_packages(), packages = find_packages(),
version = '3.13.0dev', version = '3.13.0dev',
data_files = [('', data_files = [('',
Expand Down

0 comments on commit 7860eec

Please sign in to comment.