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