Skip to content

Commit

Permalink
hack: force installation of cysignals when installing from pip
Browse files Browse the repository at this point in the history
  • Loading branch information
vrasneur committed Oct 14, 2017
1 parent 1fb6cb9 commit c82f1a8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@

VERSION = '0.4.2'

# if the module is being installed from pip using bdist_wheel
# make sure cysignals is installed before compiling
if 'bdist_wheel' in sys.argv:
try:
import cysignals
except ImportError:
from subprocess import check_call
check_call([sys.executable, '-m', 'pip', 'install', 'cysignals'])

def to_bool(val):
if not val:
val = 0
Expand Down

0 comments on commit c82f1a8

Please sign in to comment.