Commit graph

390 commits

Author SHA1 Message Date
Nguyen Anh Quynh
3ffc798787 python: add __version__ 2016-03-06 21:28:45 +08:00
Michael Cohen
29ee560688 Support all OSs. 2016-02-11 23:43:22 +01:00
Michael Cohen
ff5b295b88 Fix setup.py. 2016-02-11 15:24:17 +01:00
Raijinili
491ebd217a Python 3: CsError.__str__
Choose `CsError.__str__` implementation based on Python version.
2015-11-30 23:51:25 -05:00
Nguyen Anh Quynh
5def39eab0 python: perform the last dylib loader only if it fails before that (for El Capitan) 2015-10-19 20:04:47 +08:00
Nguyen Anh Quynh
6c22904682 Merge pull request #515 from strazzere/master
Add OSX 10.11 dylib load fix
2015-10-17 11:06:40 +08:00
Tim Strazzere
36cabb6b1d Add OSX 10.11 dylib load fix
El Capitan does not guaranteed that
(DY)LD_LIBRARY_PATH will exist, so force
one last check for the default install
directory that the install script uses.
2015-10-16 17:09:00 -07:00
Nicolas PLANEL
a496bbfc0c [binding][python] fixup python 3 compatibility
In Python 3.x dict.keys() return a dict_keys object not a list.
2015-10-04 10:44:17 +08:00
Nicolas PLANEL
65106cfde7 file.write() need bytes when file is opened in binary mode 2015-10-04 00:31:25 +08:00
Nguyen Anh Quynh
932381aacc python: do not copy msvc/headers directory in setup.py 2015-07-15 15:44:42 +08:00
Nguyen Anh Quynh
1a7a13e4da Merge branch 'master' into v3 2015-06-22 16:50:35 +08:00
Alex Chernetz
5799c485a6 [Python binding] Fix setup.py to allow installing in a virtualenv
In a virtualenv:
- site.getusersitepackages() won't import
- get_python_lib() will return the directory inside the virtualenv
- the "--user" option can therefore be safely ignored.
2015-06-19 23:22:36 -07:00
Nguyen Anh Quynh
ebc370ff40 bump version to 3.0.4 2015-06-08 22:29:55 +08:00
Nguyen Anh Quynh
0c391bb88b Merge branch 'patch-1' of https://github.com/neuromancer/capstone into t5 2015-06-04 21:40:58 +08:00
Nguyen Anh Quynh
8ac478bd4b python: shared library can be unloaded from under our feet. issue reported by @joelpx 2015-06-04 11:38:26 +08:00
neuromancer
911d0506cd Allow local installations of the python bindings
These changes will allow a pypi user to locally install capstone using the --user flag. If it possible, please update the correspondent package (https://pypi.python.org/pypi/capstone/3.0.3)
2015-06-02 14:31:36 +02:00
Nguyen Anh Quynh
cff5186e08 python: cleanup README.pypi-win 2015-05-15 17:04:16 +08:00
Nguyen Anh Quynh
53c2b0a290 python: update PyPi packages installation doc 2015-05-15 17:01:18 +08:00
Nguyen Anh Quynh
1af98dc352 cython: bump version in setup_cython.py to 3.0.3 2015-05-12 09:33:38 +08:00
Zach Riggle
a10fbb2b3f Fix error when _cs is None during teardown 2015-05-12 09:26:59 +08:00
Nguyen Anh Quynh
a34b231220 python: README.pypi-src 2015-05-10 22:57:47 +08:00
Nguyen Anh Quynh
f5785613ba python: add links to PyPi packages in their README 2015-05-08 17:26:57 +08:00
Nguyen Anh Quynh
b89c95fc99 python: bump package version to 3.0.3 (setup.py) 2015-05-08 17:06:59 +08:00
Nguyen Anh Quynh
d1e2a292a0 bump version to 3.0.3 2015-05-08 15:22:26 +08:00
danghvu
14029d8b37 Fix a bug in Cython due to renaming 2015-04-28 00:19:41 -05:00
Nguyen Anh Quynh
4504dcdc48 Merge branch 'master' into v3 2015-04-07 13:21:56 +08:00
Hank Leininger
cf6dea61e8 Add DESTDIR support for the python binding.
Without this patch, DESTDIR is ignored, so build systems that use a
staging sandbox prior to installing in real-root, such as Gentoo,
cannot build the python binding.

Caveats:

1) I wrote/tested this against the 3.0.2 release, not current HEAD.

2) It might be preferable to do DESTDIR ?= / at the top of the Makefile,
   so that the if/else/fi can be squashed back out.

3) The install_cython target probably needs a similar change; untested.

4) Other bindings might need something similar.
2015-04-06 16:40:31 -04:00
Nguyen Anh Quynh
0187ad1b8a python: X86Op.avx_zero_mask should have c_bool type 2015-04-02 12:43:57 +08:00
Nguyen Anh Quynh
3036ada407 python: simplify setup.py 2015-03-19 16:57:39 +08:00
Nguyen Anh Quynh
986bc23233 python: simplify setup.py 2015-03-19 16:57:22 +08:00
Nguyen Tan Cong
569f7a5b08 python: properly build the core in Cygwin environment for setup.py 2015-03-19 16:05:32 +08:00
Nguyen Anh Quynh
7eef7d34ac python: properly build the core in Cygwin environment for setup.py 2015-03-19 08:19:18 +07:00
Nguyen Tan Cong
c99436669f -return package name and package version to origin 2015-03-19 00:12:36 +07:00
Nguyen Tan Cong
80ab95d89f *fixbug pip on Cygwin 2015-03-19 00:08:59 +07:00
Mario Vilas
6f72b878d6 Fixed #289 2015-03-18 07:44:15 +07:00
Mario Vilas
34831d0bd6 Fixed #289 2015-03-17 15:02:29 +01:00
Nguyen Anh Quynh
cd3d186944 bump version to 3.0.2 for next stable release 2015-02-25 12:27:26 +08:00
Nguyen Anh Quynh
540185d186 python: fix a bug in test_arm.py 2015-02-15 09:51:29 +08:00
StalkR
6561c138e0 python bindings: rename member struct to _csh to avoid conflict with typedef csh 2015-02-11 22:15:47 +08:00
Nguyen Anh Quynh
3fb3b24b03 python: indentation for README.TXT 2015-02-03 23:50:28 +08:00
Nguyen Anh Quynh
e9be7ec26c python: add instructions for PyPi packages 2015-02-03 22:41:07 +08:00
Nguyen Anh Quynh
ca101281ca python: typo in setup.py 2015-02-03 22:31:19 +08:00
Nguyen Anh Quynh
4892c45204 python: rename Windows package from capstone-win to capstone-windows 2015-02-03 22:30:10 +08:00
Nguyen Anh Quynh
9a672e1dc0 python: do not include msvcr120.dll because we can static compile it 2015-02-03 20:18:05 +08:00
Nguyen Anh Quynh
8aef143f69 python: setup.py builds Windows core with cmake in release mode 2015-02-03 17:45:55 +08:00
Nguyen Anh Quynh
c6b1be8b0b python: distribute msvcr120.dll for Windows installer 2015-02-03 16:28:27 +08:00
Nguyen Anh Quynh
6685aa5889 python: clean prebuilt core in install targets of Makefile 2015-02-03 12:08:56 +08:00
Nguyen Anh Quynh
a2b60305dc python: fix installer 2015-02-03 11:45:20 +08:00
Nguyen Anh Quynh
064a602b03 python: add README.pypi* 2015-02-03 10:20:30 +08:00
Nguyen Anh Quynh
77bd828465 python: setup.py only copies source if prebuilt libs are not existent 2015-02-03 09:24:14 +08:00