Browse Source

Make pynacl optional dependency

feature/storage
Andrei 8 years ago
parent
commit
c41dca5512
  1. 5
      disco/voice/client.py
  2. 1
      requirements-optional.txt
  3. 1
      requirements.txt

5
disco/voice/client.py

@ -3,7 +3,10 @@ import socket
import struct import struct
import time import time
import nacl.secret try:
import nacl.secret
except ImportError:
print 'WARNING: nacl is not installed, voice support is disabled'
from holster.enum import Enum from holster.enum import Enum
from holster.emitter import Emitter from holster.emitter import Emitter

1
requirements-optional.txt

@ -0,0 +1 @@
pynacl==1.1.2

1
requirements.txt

@ -4,4 +4,3 @@ inflection==0.3.1
requests==2.13.0 requests==2.13.0
six==1.10.0 six==1.10.0
websocket-client==0.40.0 websocket-client==0.40.0
pynacl==1.1.2

Loading…
Cancel
Save