Alex Gaynor | bfc06bc | 2013-08-06 19:36:19 -0700 | [diff] [blame] | 1 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 2 | # you may not use this file except in compliance with the License. |
| 3 | # You may obtain a copy of the License at |
| 4 | # |
| 5 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 6 | # |
| 7 | # Unless required by applicable law or agreed to in writing, software |
| 8 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 9 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or |
| 10 | # implied. |
| 11 | # See the License for the specific language governing permissions and |
| 12 | # limitations under the License. |
Alex Gaynor | c37feed | 2014-03-08 08:32:56 -0800 | [diff] [blame] | 13 | |
| 14 | from __future__ import absolute_import, division, print_function |
| 15 | |
Alex Gaynor | f51f2c1 | 2014-01-03 07:33:01 -0800 | [diff] [blame] | 16 | import os |
Terry Chia | 361545d | 2014-07-28 12:06:54 +0800 | [diff] [blame] | 17 | import platform |
Alex Stapleton | a39a319 | 2014-03-14 20:03:12 +0000 | [diff] [blame] | 18 | import subprocess |
Alex Stapleton | 707b008 | 2014-04-20 22:24:41 +0100 | [diff] [blame] | 19 | import sys |
Alex Stapleton | 4b610cc | 2014-03-22 08:49:35 +0000 | [diff] [blame] | 20 | from distutils.command.build import build |
Alex Stapleton | a39a319 | 2014-03-14 20:03:12 +0000 | [diff] [blame] | 21 | |
| 22 | import pkg_resources |
Alex Gaynor | 9a00f05 | 2014-01-02 13:09:34 -0800 | [diff] [blame] | 23 | |
Paul Kehrer | afc1ccd | 2014-03-19 11:49:32 -0400 | [diff] [blame] | 24 | from setuptools import find_packages, setup |
Sascha Peilicke | c549205 | 2014-03-31 17:59:37 +0200 | [diff] [blame] | 25 | from setuptools.command.install import install |
Alex Gaynor | acac6a6 | 2014-03-04 15:24:03 -0800 | [diff] [blame] | 26 | from setuptools.command.test import test |
Donald Stufft | 446a457 | 2013-08-11 17:38:13 -0400 | [diff] [blame] | 27 | |
Paul Kehrer | afc1ccd | 2014-03-19 11:49:32 -0400 | [diff] [blame] | 28 | |
Alex Gaynor | 7630d6c | 2014-01-03 07:34:43 -0800 | [diff] [blame] | 29 | base_dir = os.path.dirname(__file__) |
| 30 | |
Donald Stufft | 5f12a1b | 2013-08-11 16:37:43 -0400 | [diff] [blame] | 31 | about = {} |
Alex Gaynor | 7630d6c | 2014-01-03 07:34:43 -0800 | [diff] [blame] | 32 | with open(os.path.join(base_dir, "cryptography", "__about__.py")) as f: |
| 33 | exec(f.read(), about) |
Donald Stufft | 5f12a1b | 2013-08-11 16:37:43 -0400 | [diff] [blame] | 34 | |
| 35 | |
Terry Chia | da5dca8 | 2014-07-27 12:27:52 +0800 | [diff] [blame] | 36 | SETUPTOOLS_DEPENDENCY = "setuptools" |
Paul Kehrer | 7fcaa37 | 2014-01-10 23:39:58 -0600 | [diff] [blame] | 37 | CFFI_DEPENDENCY = "cffi>=0.8" |
Paul Kehrer | c024255 | 2013-09-10 18:54:13 -0500 | [diff] [blame] | 38 | SIX_DEPENDENCY = "six>=1.4.1" |
Alex Stapleton | a39a319 | 2014-03-14 20:03:12 +0000 | [diff] [blame] | 39 | VECTORS_DEPENDENCY = "cryptography_vectors=={0}".format(about['__version__']) |
Donald Stufft | 5f12a1b | 2013-08-11 16:37:43 -0400 | [diff] [blame] | 40 | |
Alex Gaynor | 91f119e | 2014-01-02 13:12:59 -0800 | [diff] [blame] | 41 | requirements = [ |
Donald Stufft | 5f12a1b | 2013-08-11 16:37:43 -0400 | [diff] [blame] | 42 | CFFI_DEPENDENCY, |
Terry Chia | da5dca8 | 2014-07-27 12:27:52 +0800 | [diff] [blame] | 43 | SIX_DEPENDENCY, |
| 44 | SETUPTOOLS_DEPENDENCY |
Donald Stufft | 5f12a1b | 2013-08-11 16:37:43 -0400 | [diff] [blame] | 45 | ] |
| 46 | |
Paul Kehrer | 7ad18bc | 2014-03-26 13:13:38 -0600 | [diff] [blame] | 47 | # If you add a new dep here you probably need to add it in the tox.ini as well |
koobs | ff0dd1e | 2014-02-24 21:55:04 +1100 | [diff] [blame] | 48 | test_requirements = [ |
| 49 | "pytest", |
Paul Kehrer | d3e3df9 | 2014-04-30 11:13:17 -0500 | [diff] [blame] | 50 | "pyasn1", |
koobs | ff0dd1e | 2014-02-24 21:55:04 +1100 | [diff] [blame] | 51 | "pretend", |
Alex Stapleton | 0bd20e2 | 2014-03-14 19:58:07 +0000 | [diff] [blame] | 52 | "iso8601", |
koobs | ff0dd1e | 2014-02-24 21:55:04 +1100 | [diff] [blame] | 53 | ] |
| 54 | |
Alex Stapleton | a39a319 | 2014-03-14 20:03:12 +0000 | [diff] [blame] | 55 | # If there's no vectors locally that probably means we are in a tarball and |
| 56 | # need to go and get the matching vectors package from PyPi |
| 57 | if not os.path.exists(os.path.join(base_dir, "vectors/setup.py")): |
| 58 | test_requirements.append(VECTORS_DEPENDENCY) |
| 59 | |
Alex Gaynor | 9a00f05 | 2014-01-02 13:09:34 -0800 | [diff] [blame] | 60 | |
Terry Chia | 361545d | 2014-07-28 12:06:54 +0800 | [diff] [blame] | 61 | def cc_is_available(): |
| 62 | return sys.platform == "darwin" and list(map( |
| 63 | int, platform.mac_ver()[0].split("."))) >= [10, 8, 0] |
| 64 | |
| 65 | |
| 66 | backends = [ |
| 67 | "openssl = cryptography.hazmat.backends.openssl:backend" |
| 68 | ] |
| 69 | |
| 70 | if cc_is_available(): |
| 71 | backends.append( |
| 72 | "commoncrypto = cryptography.hazmat.backends.commoncrypto:backend", |
| 73 | ) |
| 74 | |
| 75 | |
Sascha Peilicke | c549205 | 2014-03-31 17:59:37 +0200 | [diff] [blame] | 76 | def get_ext_modules(): |
| 77 | from cryptography.hazmat.bindings.commoncrypto.binding import ( |
| 78 | Binding as CommonCryptoBinding |
| 79 | ) |
| 80 | from cryptography.hazmat.bindings.openssl.binding import ( |
| 81 | Binding as OpenSSLBinding |
| 82 | ) |
| 83 | from cryptography.hazmat.primitives import constant_time, padding |
| 84 | |
| 85 | ext_modules = [ |
| 86 | OpenSSLBinding().ffi.verifier.get_extension(), |
| 87 | constant_time._ffi.verifier.get_extension(), |
| 88 | padding._ffi.verifier.get_extension() |
| 89 | ] |
Terry Chia | 361545d | 2014-07-28 12:06:54 +0800 | [diff] [blame] | 90 | if cc_is_available(): |
Sascha Peilicke | c549205 | 2014-03-31 17:59:37 +0200 | [diff] [blame] | 91 | ext_modules.append(CommonCryptoBinding().ffi.verifier.get_extension()) |
| 92 | return ext_modules |
| 93 | |
| 94 | |
Paul Kehrer | 5b6ce2a | 2014-02-24 20:16:10 -0600 | [diff] [blame] | 95 | class CFFIBuild(build): |
Alex Gaynor | 4969751 | 2014-01-03 15:08:45 -0800 | [diff] [blame] | 96 | """ |
| 97 | This class exists, instead of just providing ``ext_modules=[...]`` directly |
| 98 | in ``setup()`` because importing cryptography requires we have several |
| 99 | packages installed first. |
| 100 | |
| 101 | By doing the imports here we ensure that packages listed in |
| 102 | ``setup_requires`` are already installed. |
| 103 | """ |
| 104 | |
Alex Gaynor | 9a00f05 | 2014-01-02 13:09:34 -0800 | [diff] [blame] | 105 | def finalize_options(self): |
Sascha Peilicke | c549205 | 2014-03-31 17:59:37 +0200 | [diff] [blame] | 106 | self.distribution.ext_modules = get_ext_modules() |
Alex Gaynor | 9a00f05 | 2014-01-02 13:09:34 -0800 | [diff] [blame] | 107 | build.finalize_options(self) |
| 108 | |
koobs | 92a4cdb | 2014-02-24 22:13:17 +1100 | [diff] [blame] | 109 | |
Sascha Peilicke | c549205 | 2014-03-31 17:59:37 +0200 | [diff] [blame] | 110 | class CFFIInstall(install): |
| 111 | """ |
| 112 | As a consequence of CFFIBuild and it's late addition of ext_modules, we |
| 113 | need the equivalent for the ``install`` command to install into platlib |
| 114 | install-dir rather than purelib. |
| 115 | """ |
| 116 | |
| 117 | def finalize_options(self): |
| 118 | self.distribution.ext_modules = get_ext_modules() |
| 119 | install.finalize_options(self) |
| 120 | |
| 121 | |
Alex Gaynor | acac6a6 | 2014-03-04 15:24:03 -0800 | [diff] [blame] | 122 | class PyTest(test): |
koobs | ff0dd1e | 2014-02-24 21:55:04 +1100 | [diff] [blame] | 123 | def finalize_options(self): |
Alex Gaynor | 6858cd4 | 2014-03-04 15:33:13 -0800 | [diff] [blame] | 124 | test.finalize_options(self) |
koobs | ff0dd1e | 2014-02-24 21:55:04 +1100 | [diff] [blame] | 125 | self.test_args = [] |
| 126 | self.test_suite = True |
koobs | 0667180 | 2014-02-24 22:33:07 +1100 | [diff] [blame] | 127 | |
Alex Stapleton | a39a319 | 2014-03-14 20:03:12 +0000 | [diff] [blame] | 128 | # This means there's a vectors/ folder with the package in here. |
| 129 | # cd into it, install the vectors package and then refresh sys.path |
| 130 | if VECTORS_DEPENDENCY not in test_requirements: |
Alex Gaynor | d9f9b75 | 2014-07-11 10:18:24 -0700 | [diff] [blame] | 131 | subprocess.check_call( |
| 132 | [sys.executable, "setup.py", "install"], cwd="vectors" |
| 133 | ) |
Alex Stapleton | a39a319 | 2014-03-14 20:03:12 +0000 | [diff] [blame] | 134 | pkg_resources.get_distribution("cryptography_vectors").activate() |
| 135 | |
koobs | ff0dd1e | 2014-02-24 21:55:04 +1100 | [diff] [blame] | 136 | def run_tests(self): |
koobs | 92a4cdb | 2014-02-24 22:13:17 +1100 | [diff] [blame] | 137 | # Import here because in module scope the eggs are not loaded. |
koobs | ff0dd1e | 2014-02-24 21:55:04 +1100 | [diff] [blame] | 138 | import pytest |
| 139 | errno = pytest.main(self.test_args) |
| 140 | sys.exit(errno) |
| 141 | |
Alex Gaynor | 9a00f05 | 2014-01-02 13:09:34 -0800 | [diff] [blame] | 142 | |
Peter Odding | 51ec05f | 2014-07-12 01:18:35 +0200 | [diff] [blame] | 143 | def keywords_with_side_effects(argv): |
Peter Odding | c9b83f7 | 2014-07-12 00:52:58 +0200 | [diff] [blame] | 144 | """ |
| 145 | Get a dictionary with setup keywords that (can) have side effects. |
| 146 | |
Peter Odding | 51ec05f | 2014-07-12 01:18:35 +0200 | [diff] [blame] | 147 | :param argv: A list of strings with command line arguments. |
| 148 | :returns: A dictionary with keyword arguments for the ``setup()`` function. |
| 149 | |
Peter Odding | c9b83f7 | 2014-07-12 00:52:58 +0200 | [diff] [blame] | 150 | This setup.py script uses the setuptools 'setup_requires' feature because |
| 151 | this is required by the cffi package to compile extension modules. The |
| 152 | purpose of ``keywords_with_side_effects()`` is to avoid triggering the cffi |
Peter Odding | e914456 | 2014-07-12 03:14:55 +0200 | [diff] [blame] | 153 | build process as a result of setup.py invocations that don't need the cffi |
| 154 | module to be built (setup.py serves the dual purpose of exposing package |
| 155 | metadata). |
Peter Odding | c9b83f7 | 2014-07-12 00:52:58 +0200 | [diff] [blame] | 156 | |
Peter Odding | e914456 | 2014-07-12 03:14:55 +0200 | [diff] [blame] | 157 | All of the options listed by ``python setup.py --help`` that print |
| 158 | information should be recognized here. The commands ``clean``, |
| 159 | ``egg_info``, ``register``, ``sdist`` and ``upload`` are also recognized. |
| 160 | Any combination of these options and commands is also supported. |
Peter Odding | c9b83f7 | 2014-07-12 00:52:58 +0200 | [diff] [blame] | 161 | |
Peter Odding | e914456 | 2014-07-12 03:14:55 +0200 | [diff] [blame] | 162 | This function was originally based on the `setup.py script`_ of SciPy (see |
| 163 | also the discussion in `pip issue #25`_). |
Peter Odding | c9b83f7 | 2014-07-12 00:52:58 +0200 | [diff] [blame] | 164 | |
| 165 | .. _pip issue #25: https://github.com/pypa/pip/issues/25 |
Peter Odding | 63ce5df | 2014-07-12 01:56:37 +0200 | [diff] [blame] | 166 | .. _setup.py script: https://github.com/scipy/scipy/blob/master/setup.py |
Peter Odding | c9b83f7 | 2014-07-12 00:52:58 +0200 | [diff] [blame] | 167 | """ |
Peter Odding | e914456 | 2014-07-12 03:14:55 +0200 | [diff] [blame] | 168 | no_setup_requires_arguments = ( |
| 169 | '-h', '--help', |
| 170 | '-n', '--dry-run', |
| 171 | '-q', '--quiet', |
| 172 | '-v', '--verbose', |
| 173 | '-V', '--version', |
| 174 | '--author', |
| 175 | '--author-email', |
| 176 | '--classifiers', |
| 177 | '--contact', |
| 178 | '--contact-email', |
| 179 | '--description', |
Peter Odding | 6c1e9ef | 2014-07-14 15:50:31 +0200 | [diff] [blame^] | 180 | '--egg-base', |
Peter Odding | e914456 | 2014-07-12 03:14:55 +0200 | [diff] [blame] | 181 | '--fullname', |
| 182 | '--help-commands', |
| 183 | '--keywords', |
| 184 | '--licence', |
| 185 | '--license', |
| 186 | '--long-description', |
| 187 | '--maintainer', |
| 188 | '--maintainer-email', |
| 189 | '--name', |
| 190 | '--no-user-cfg', |
| 191 | '--obsoletes', |
| 192 | '--platforms', |
| 193 | '--provides', |
| 194 | '--requires', |
| 195 | '--url', |
| 196 | 'clean', |
| 197 | 'egg_info', |
| 198 | 'register', |
| 199 | 'sdist', |
| 200 | 'upload', |
| 201 | ) |
Peter Odding | 6c1e9ef | 2014-07-14 15:50:31 +0200 | [diff] [blame^] | 202 | def is_short_option(argument): |
| 203 | """Check whether a command line argument is a short option.""" |
| 204 | return len(argument) >= 2 and argument[0] == '-' and argument[1] != '-' |
| 205 | def expand_short_options(argument): |
| 206 | """Expand combined short options into canonical short options.""" |
| 207 | return ('-' + char for char in argument[1:]) |
| 208 | def argument_without_setup_requirements(argv, i): |
| 209 | """Check whether a command line argument needs setup requirements.""" |
| 210 | if argv[i] in no_setup_requires_arguments: |
| 211 | # Simple case: An argument which is either an option or a command |
| 212 | # which doesn't need setup requirements. |
| 213 | return True |
| 214 | elif is_short_option(argv[i]) and all(option in |
| 215 | no_setup_requires_arguments for option in |
| 216 | expand_short_options(argv[i])): |
| 217 | # Not so simple case: Combined short options none of which need |
| 218 | # setup requirements. |
| 219 | return True |
| 220 | elif argv[i - 1 : i] == ['--egg-base']: |
| 221 | # Tricky case: --egg-info takes an argument which should not make |
| 222 | # us use setup_requires (defeating the purpose of this code). |
| 223 | return True |
| 224 | else: |
| 225 | return False |
| 226 | if all(argument_without_setup_requirements(argv, i) for i in range(1, len(argv))): |
Peter Odding | 3ae89a5 | 2014-07-12 02:06:56 +0200 | [diff] [blame] | 227 | return { |
| 228 | "cmdclass": { |
| 229 | "build": DummyCFFIBuild, |
| 230 | "install": DummyCFFIInstall, |
| 231 | "test": DummyPyTest, |
| 232 | } |
| 233 | } |
Peter Odding | c9b83f7 | 2014-07-12 00:52:58 +0200 | [diff] [blame] | 234 | else: |
Peter Odding | e327cf1 | 2014-07-12 01:18:50 +0200 | [diff] [blame] | 235 | return { |
| 236 | "setup_requires": requirements, |
| 237 | "cmdclass": { |
| 238 | "build": CFFIBuild, |
| 239 | "install": CFFIInstall, |
| 240 | "test": PyTest, |
| 241 | } |
| 242 | } |
Peter Odding | c9b83f7 | 2014-07-12 00:52:58 +0200 | [diff] [blame] | 243 | |
| 244 | |
Peter Odding | 3ae89a5 | 2014-07-12 02:06:56 +0200 | [diff] [blame] | 245 | setup_requires_error = ("Requested setup command that needs 'setup_requires' " |
| 246 | "while command line arguments implied a side effect " |
| 247 | "free command or option.") |
| 248 | |
| 249 | |
Peter Odding | c9861f9 | 2014-07-13 04:17:20 +0200 | [diff] [blame] | 250 | class DummyCFFIBuild(build): |
Peter Odding | 3ae89a5 | 2014-07-12 02:06:56 +0200 | [diff] [blame] | 251 | """ |
| 252 | This class makes it very obvious when ``keywords_with_side_effects()`` has |
| 253 | incorrectly interpreted the command line arguments to ``setup.py build`` as |
| 254 | one of the 'side effect free' commands or options. |
| 255 | """ |
| 256 | |
Peter Odding | dcce080 | 2014-07-12 02:28:13 +0200 | [diff] [blame] | 257 | def run(self): |
Peter Odding | 3ae89a5 | 2014-07-12 02:06:56 +0200 | [diff] [blame] | 258 | raise RuntimeError(setup_requires_error) |
| 259 | |
| 260 | |
Peter Odding | c9861f9 | 2014-07-13 04:17:20 +0200 | [diff] [blame] | 261 | class DummyCFFIInstall(install): |
Peter Odding | 3ae89a5 | 2014-07-12 02:06:56 +0200 | [diff] [blame] | 262 | """ |
| 263 | This class makes it very obvious when ``keywords_with_side_effects()`` has |
| 264 | incorrectly interpreted the command line arguments to ``setup.py install`` |
| 265 | as one of the 'side effect free' commands or options. |
| 266 | """ |
| 267 | |
Peter Odding | dcce080 | 2014-07-12 02:28:13 +0200 | [diff] [blame] | 268 | def run(self): |
Peter Odding | 3ae89a5 | 2014-07-12 02:06:56 +0200 | [diff] [blame] | 269 | raise RuntimeError(setup_requires_error) |
| 270 | |
| 271 | |
Peter Odding | c9861f9 | 2014-07-13 04:17:20 +0200 | [diff] [blame] | 272 | class DummyPyTest(test): |
Peter Odding | 3ae89a5 | 2014-07-12 02:06:56 +0200 | [diff] [blame] | 273 | """ |
| 274 | This class makes it very obvious when ``keywords_with_side_effects()`` has |
| 275 | incorrectly interpreted the command line arguments to ``setup.py test`` as |
| 276 | one of the 'side effect free' commands or options. |
| 277 | """ |
| 278 | |
Peter Odding | 3ae89a5 | 2014-07-12 02:06:56 +0200 | [diff] [blame] | 279 | def run_tests(self): |
| 280 | raise RuntimeError(setup_requires_error) |
| 281 | |
| 282 | |
Alex Gaynor | 7630d6c | 2014-01-03 07:34:43 -0800 | [diff] [blame] | 283 | with open(os.path.join(base_dir, "README.rst")) as f: |
Alex Gaynor | f51f2c1 | 2014-01-03 07:33:01 -0800 | [diff] [blame] | 284 | long_description = f.read() |
| 285 | |
| 286 | |
Alex Gaynor | c62e91f | 2013-08-06 19:25:52 -0700 | [diff] [blame] | 287 | setup( |
Donald Stufft | 5f12a1b | 2013-08-11 16:37:43 -0400 | [diff] [blame] | 288 | name=about["__title__"], |
| 289 | version=about["__version__"], |
| 290 | |
| 291 | description=about["__summary__"], |
Alex Gaynor | f51f2c1 | 2014-01-03 07:33:01 -0800 | [diff] [blame] | 292 | long_description=long_description, |
Donald Stufft | 5f12a1b | 2013-08-11 16:37:43 -0400 | [diff] [blame] | 293 | license=about["__license__"], |
| 294 | url=about["__uri__"], |
| 295 | |
| 296 | author=about["__author__"], |
| 297 | author_email=about["__email__"], |
| 298 | |
Christian Heimes | f83ed1d | 2013-08-10 23:28:29 +0200 | [diff] [blame] | 299 | classifiers=[ |
Christian Heimes | f83ed1d | 2013-08-10 23:28:29 +0200 | [diff] [blame] | 300 | "Intended Audience :: Developers", |
| 301 | "License :: OSI Approved :: Apache Software License", |
| 302 | "Natural Language :: English", |
| 303 | "Operating System :: MacOS :: MacOS X", |
| 304 | "Operating System :: POSIX", |
| 305 | "Operating System :: POSIX :: BSD", |
| 306 | "Operating System :: POSIX :: Linux", |
| 307 | "Operating System :: Microsoft :: Windows", |
Christian Heimes | f83ed1d | 2013-08-10 23:28:29 +0200 | [diff] [blame] | 308 | "Programming Language :: Python", |
| 309 | "Programming Language :: Python :: 2", |
| 310 | "Programming Language :: Python :: 2.6", |
| 311 | "Programming Language :: Python :: 2.7", |
| 312 | "Programming Language :: Python :: 3", |
| 313 | "Programming Language :: Python :: 3.2", |
| 314 | "Programming Language :: Python :: 3.3", |
Alex Gaynor | 7f8b277 | 2014-03-17 10:22:41 -0700 | [diff] [blame] | 315 | "Programming Language :: Python :: 3.4", |
Christian Heimes | f83ed1d | 2013-08-10 23:28:29 +0200 | [diff] [blame] | 316 | "Programming Language :: Python :: Implementation :: CPython", |
| 317 | "Programming Language :: Python :: Implementation :: PyPy", |
| 318 | "Topic :: Security :: Cryptography", |
| 319 | ], |
Donald Stufft | 5f12a1b | 2013-08-11 16:37:43 -0400 | [diff] [blame] | 320 | |
Donald Stufft | 9ebb8ff | 2013-08-11 17:05:03 -0400 | [diff] [blame] | 321 | packages=find_packages(exclude=["tests", "tests.*"]), |
Alex Gaynor | e23dd3a | 2014-08-11 13:51:54 -0700 | [diff] [blame] | 322 | include_package_data=True, |
Donald Stufft | 9ebb8ff | 2013-08-11 17:05:03 -0400 | [diff] [blame] | 323 | |
Alex Gaynor | 91f119e | 2014-01-02 13:12:59 -0800 | [diff] [blame] | 324 | install_requires=requirements, |
koobs | ff0dd1e | 2014-02-24 21:55:04 +1100 | [diff] [blame] | 325 | tests_require=test_requirements, |
Donald Stufft | 5f12a1b | 2013-08-11 16:37:43 -0400 | [diff] [blame] | 326 | |
| 327 | # for cffi |
| 328 | zip_safe=False, |
Alex Gaynor | 9a00f05 | 2014-01-02 13:09:34 -0800 | [diff] [blame] | 329 | ext_package="cryptography", |
Terry Chia | da5dca8 | 2014-07-27 12:27:52 +0800 | [diff] [blame] | 330 | entry_points={ |
Terry Chia | 361545d | 2014-07-28 12:06:54 +0800 | [diff] [blame] | 331 | "cryptography.backends": backends, |
Peter Odding | c9b83f7 | 2014-07-12 00:52:58 +0200 | [diff] [blame] | 332 | }, |
Peter Odding | 51ec05f | 2014-07-12 01:18:35 +0200 | [diff] [blame] | 333 | **keywords_with_side_effects(sys.argv) |
Alex Gaynor | c62e91f | 2013-08-06 19:25:52 -0700 | [diff] [blame] | 334 | ) |