I want to be able to load modules dynamically from a *.whl
files in my app.
I'm using sys.path.append('module.whl')
for that and it works in most cases, I can't get it to work if the module has an *.so
file in it, it cannot find it locally, for example using bcrypt
module, for eample:
import sys
sys.path.append("bcrypt-3.1.7-cp27-cp27m-macosx_10_6_intel.whl")
import bcrypt
I'm getting:
Traceback (most recent call last):
File "/Users/arossert/tests/whlimport/app.py", line 6, in <module>
import bcrypt
File "bcrypt-3.1.7-cp27-cp27m-macosx_10_6_intel.whl/bcrypt/__init__.py", line 25, in <module>
ImportError: cannot import name _bcrypt
Inside the *.whl
there is a _bcrypt.so
file but cannot find it, is there a way around it?