diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2015-06-27 09:22:33 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2015-06-27 09:22:33 +1200 |
commit | 3d6dc0879b349a7f025e6ab257708b6bedf44570 (patch) | |
tree | 4e4a82e570e1eb957e1522435b1c65e68b81e28f /setup.py | |
parent | 26ea1a065e1648029a1eed578c18113e47f093f9 (diff) | |
parent | 2723a0e5739412953f60c37d0dab81d684ba5f26 (diff) | |
download | mitmproxy-3d6dc0879b349a7f025e6ab257708b6bedf44570.tar.gz mitmproxy-3d6dc0879b349a7f025e6ab257708b6bedf44570.tar.bz2 mitmproxy-3d6dc0879b349a7f025e6ab257708b6bedf44570.zip |
Merge pull request #79 from mitmproxy/remove_certffi
Remove certffi
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 33 |
1 files changed, 3 insertions, 30 deletions
@@ -1,5 +1,3 @@ -from distutils.command.build import build -from setuptools.command.install import install from setuptools import setup, find_packages from codecs import open import os @@ -15,25 +13,6 @@ here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README.mkd'), encoding='utf-8') as f: long_description = f.read() - -def get_ext_modules(): - from netlib import certffi - return [certffi.xffi.verifier.get_extension()] - - -class CFFIBuild(build): - - def finalize_options(self): - self.distribution.ext_modules = get_ext_modules() - build.finalize_options(self) - - -class CFFIInstall(install): - - def finalize_options(self): - self.distribution.ext_modules = get_ext_modules() - install.finalize_options(self) - setup( name="netlib", version=version.VERSION, @@ -62,16 +41,12 @@ setup( include_package_data=True, zip_safe=False, install_requires=[ - "cffi", "pyasn1>=0.1.7", "pyOpenSSL>=0.15.1", "cryptography>=0.9", "passlib>=1.6.2", "hpack>=1.0.1", - "certifi"], - setup_requires=[ - "cffi", - "pyOpenSSL>=0.15.1", + "certifi" ], extras_require={ 'dev': [ @@ -84,9 +59,7 @@ setup( "wheel>=0.24.0", "pathod>=%s, <%s" % (version.MINORVERSION, - version.NEXT_MINORVERSION)]}, - cmdclass={ - "build": CFFIBuild, - "install": CFFIInstall, + version.NEXT_MINORVERSION) + ] }, ) |