Skip to content

Commit 6da3950

Browse files
author
Gasper Zejn
committed
On windows, use pycryptodome, which comes with prebuilt binary packages. Cryptography may still require extra libraries.
1 parent 7403dff commit 6da3950

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33
import os
4-
4+
import sys
55
import jose
66

77
import platform
@@ -25,7 +25,7 @@ def get_packages(package):
2525

2626

2727
def get_install_requires():
28-
if platform.python_implementation() == 'PyPy':
28+
if sys.platform == "win32" or platform.python_implementation() == 'PyPy':
2929
crypto_lib = 'pycryptodome >=3.3.1, <3.4.0'
3030
else:
3131
crypto_lib = 'pycrypto >=2.6.0, <2.7.0'

0 commit comments

Comments
 (0)