Skip to content
Snippets Groups Projects
Commit f084bf1c authored by Donald Stufft's avatar Donald Stufft
Browse files

Fix running tests when cffi isn't available by default

parent 5d30b907
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python #!/usr/bin/env python
import glob
import os import os
import os.path import os.path
import shlex import shlex
import shutil import shutil
import subprocess import subprocess
import sys
import tarfile import tarfile
import tempfile import tempfile
...@@ -37,6 +39,11 @@ def which(name, flags=os.X_OK): # Taken from twisted ...@@ -37,6 +39,11 @@ def which(name, flags=os.X_OK): # Taken from twisted
result.append(pext) result.append(pext)
return result return result
# This hack exists so that we can import nacl here
sys.path += glob.glob("*.egg")
try: try:
import nacl.nacl import nacl.nacl
except ImportError: except ImportError:
...@@ -179,6 +186,9 @@ setup( ...@@ -179,6 +186,9 @@ setup(
author=nacl.__author__, author=nacl.__author__,
author_email=nacl.__email__, author_email=nacl.__email__,
setup_requires=[
"cffi",
],
install_requires=[ install_requires=[
"cffi", "cffi",
], ],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment