From c62a78c015cf7aeb0c05bce82ef14cd86fe0b0fc Mon Sep 17 00:00:00 2001 From: Donald Stufft Date: Fri, 7 Nov 2014 19:17:08 -0500 Subject: Move the cryptography package into a src/ subdirectory Due to differences in how py.test determines which module to ``import`` the test suite actually runs against the cryptography which is in the *current* directory instead of the cryptography which is installed. The problem essentially boils down to when there is a tests/__init__.py then py.test adds the current directory to the front of the sys.path, causing it to take precedence over the installed location. This means that running the tests relies on the implicit compile that CFFI does instead of testing against what people will actually be runnning, which is the module compiled by setup.py. --- MANIFEST.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'MANIFEST.in') diff --git a/MANIFEST.in b/MANIFEST.in index 41fb19b2..b7e6559f 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -7,7 +7,7 @@ include LICENSE.BSD include README.rst recursive-include docs * -recursive-include cryptography/hazmat/primitives/src *.c *.h +recursive-include src/cryptography/hazmat/primitives/src *.c *.h prune docs/_build recursive-include tests *.py recursive-exclude vectors * -- cgit v1.2.3