-
Notifications
You must be signed in to change notification settings - Fork 459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[python] library is installed in a wrong directory with --user flag #297
Comments
Did you try this on latest Capstone code? If you did, can you open a new
issue on Capstone repo?
|
it's broken in pip-installed version (3.0.4) of capstone, but seems it's fixed in the master branch of capstone. |
we can fix this by porting the the Python binding of Unicorn to Keystone (as they are very similar). the only related Keystone file is https://github.com/keystone-engine/keystone/blob/master/bindings/python/setup.py, and the counterpart is https://github.com/unicorn-engine/unicorn/blob/master/bindings/python/setup.py if you can fix this, please send pull req |
using `data_files` dict prefixed with `SITE_PACKAGES = os.path.join(get_python_lib(), "keystone")` is not portable, see #235 and #297 for details. Regular setup configuration does not work, e.g., specifying `package_data` etc, since that only affects `sdist`. The fix is a hack: customize `install_lib` to explicitly copy the file into keystone install dir.
with #301 merged, i think this issue is resolved. see the below terminal session building keystone on linux/python3: before patch:
after patch:
|
Had this problem today on Ubuntu 18.04.2 LTS. |
version: 0.9.1
If I install
keystone-engine
with --user flag without virtualenv,libkeystone.so
is installed in a wrong directory, thus loading the keystone-engine throws an exception:the libkeystone.so is installed in
/home/username/.local/lib/python2.7/site-packages/usr/lib/python2.7/dist-packages/keystone/libkeystone.so
, but it should be located in/home/username/.local/lib/python2.7/site-packages/keystone/libkeystone.so
it seems that capstone has the same issue.
The text was updated successfully, but these errors were encountered: