Skip to content

Commit

Permalink
Merge pull request #1317 from beardypig/pysocks-fix
Browse files Browse the repository at this point in the history
setup: fix PySocks module dependency
  • Loading branch information
gravyboat committed Nov 7, 2017
2 parents 6e1952c + 6f37c3a commit 1a10844
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions setup.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python

import os
from os import environ
from os.path import abspath, dirname, join
from setuptools import setup, find_packages
from sys import version_info, path as sys_path
import warnings

deps = []

Expand Down Expand Up @@ -47,7 +47,12 @@
deps.append("websocket-client")

# Support for SOCKS proxies
deps.append("requests[socks]")
deps.append("PySocks!=1.5.7,>=1.5.6") # requests[socks] uses this version

# win-inet-pton is missing a dependency in PySocks, this has been fixed but not released yet
if os.name == "nt" and version_info < (3, 0):
# Required due to missing socket.inet_ntop & socket.inet_pton method in Windows Python 2.x
deps.append("win-inet-pton")

# When we build an egg for the Win32 bootstrap we don't want dependency
# information built into it.
Expand Down

0 comments on commit 1a10844

Please sign in to comment.